From 06c27593386459b0f6b85fc674460ea5af23f7f1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 1 Jul 2021 16:47:14 +0200 Subject: Fix hooks definition --- server/models/actor/actor.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/models/actor') diff --git a/server/models/actor/actor.ts b/server/models/actor/actor.ts index 0cd30f545..8df49951d 100644 --- a/server/models/actor/actor.ts +++ b/server/models/actor/actor.ts @@ -496,7 +496,7 @@ export class ActorModel extends Model>> { }, { where, transaction }) } - static loadAccountActorByVideoId (videoId: number): Promise { + static loadAccountActorByVideoId (videoId: number, transaction: Transaction): Promise { const query = { include: [ { @@ -520,7 +520,8 @@ export class ActorModel extends Model>> { } ] } - ] + ], + transaction } return ActorModel.unscoped().findOne(query) -- cgit v1.2.3