diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-19 15:02:43 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-20 09:25:44 +0200 |
commit | 906f46d0849fac3e2b30b7bdd57759e189d6a35d (patch) | |
tree | 3fbe0023c046ade74995010ae21f6e2eece1ddf5 /server/models | |
parent | 4beda9e12adc7b1f3b178cecd6863ebf3cf431f1 (diff) | |
download | PeerTube-906f46d0849fac3e2b30b7bdd57759e189d6a35d.tar.gz PeerTube-906f46d0849fac3e2b30b7bdd57759e189d6a35d.tar.zst PeerTube-906f46d0849fac3e2b30b7bdd57759e189d6a35d.zip |
Split check user params tests
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video/video-channel.ts | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index a151ad61c..4151dc5b5 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts | |||
@@ -582,7 +582,6 @@ ON "Account->Actor"."serverId" = "Account->Actor->Server"."id"` | |||
582 | }) | 582 | }) |
583 | } | 583 | } |
584 | 584 | ||
585 | |||
586 | static listAllByAccount (accountId: number) { | 585 | static listAllByAccount (accountId: number) { |
587 | const query = { | 586 | const query = { |
588 | limit: VIDEO_CHANNELS.MAX_PER_USER, | 587 | limit: VIDEO_CHANNELS.MAX_PER_USER, |
@@ -601,7 +600,6 @@ ON "Account->Actor"."serverId" = "Account->Actor->Server"."id"` | |||
601 | return VideoChannelModel.findAll(query) | 600 | return VideoChannelModel.findAll(query) |
602 | } | 601 | } |
603 | 602 | ||
604 | |||
605 | static loadAndPopulateAccount (id: number, transaction?: Transaction): Promise<MChannelBannerAccountDefault> { | 603 | static loadAndPopulateAccount (id: number, transaction?: Transaction): Promise<MChannelBannerAccountDefault> { |
606 | return VideoChannelModel.unscoped() | 604 | return VideoChannelModel.unscoped() |
607 | .scope([ ScopeNames.WITH_ACTOR_BANNER, ScopeNames.WITH_ACCOUNT ]) | 605 | .scope([ ScopeNames.WITH_ACTOR_BANNER, ScopeNames.WITH_ACCOUNT ]) |