diff options
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r-- | server/models/video/video.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 4d15c2a50..918892938 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -507,6 +507,10 @@ export class VideoModel extends Model<VideoModel> { | |||
507 | return VideoModel.findById(id) | 507 | return VideoModel.findById(id) |
508 | } | 508 | } |
509 | 509 | ||
510 | static loadAndPopulateAccount (id: number) { | ||
511 | return VideoModel.scope([ ScopeNames.WITH_ACCOUNT_DETAILS ]).findById(id) | ||
512 | } | ||
513 | |||
510 | static loadByUrl (url: string, t?: Sequelize.Transaction) { | 514 | static loadByUrl (url: string, t?: Sequelize.Transaction) { |
511 | const query: IFindOptions<VideoModel> = { | 515 | const query: IFindOptions<VideoModel> = { |
512 | where: { | 516 | where: { |