diff options
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 240a2b5a2..ffb9725b4 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -640,7 +640,7 @@ export class VideoModel extends Model<VideoModel> { | |||
640 | }) | 640 | }) |
641 | } | 641 | } |
642 | 642 | ||
643 | static listUserVideosForApi (userId: number, start: number, count: number, sort: string, withFiles = false) { | 643 | static listAccountVideosForApi (accountId: number, start: number, count: number, sort: string, withFiles = false) { |
644 | const query: IFindOptions<VideoModel> = { | 644 | const query: IFindOptions<VideoModel> = { |
645 | offset: start, | 645 | offset: start, |
646 | limit: count, | 646 | limit: count, |
@@ -653,7 +653,7 @@ export class VideoModel extends Model<VideoModel> { | |||
653 | { | 653 | { |
654 | model: AccountModel, | 654 | model: AccountModel, |
655 | where: { | 655 | where: { |
656 | userId | 656 | id: accountId |
657 | }, | 657 | }, |
658 | required: true | 658 | required: true |
659 | } | 659 | } |