From 3acc50844047a37698f0618fa235c138e386a053 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 23 Apr 2019 09:50:57 +0200 Subject: Upgrade sequelize --- server/models/video/video-change-ownership.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'server/models/video/video-change-ownership.ts') diff --git a/server/models/video/video-change-ownership.ts b/server/models/video/video-change-ownership.ts index a4f4d53f1..171d4574d 100644 --- a/server/models/video/video-change-ownership.ts +++ b/server/models/video/video-change-ownership.ts @@ -23,29 +23,29 @@ enum ScopeNames { } ] }) -@Scopes({ +@Scopes(() => ({ [ScopeNames.FULL]: { include: [ { - model: () => AccountModel, + model: AccountModel, as: 'Initiator', required: true }, { - model: () => AccountModel, + model: AccountModel, as: 'NextOwner', required: true }, { - model: () => VideoModel, + model: VideoModel, required: true, include: [ - { model: () => VideoFileModel } + { model: VideoFileModel } ] } - ] as any // FIXME: sequelize typings + ] } -}) +})) export class VideoChangeOwnershipModel extends Model { @CreatedAt createdAt: Date -- cgit v1.2.3