aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/actor
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-01 16:47:14 +0200
committerChocobozzz <me@florianbigard.com>2021-07-01 16:47:14 +0200
commit06c27593386459b0f6b85fc674460ea5af23f7f1 (patch)
tree37b126b16b9f482e4c36a01d08434c659882521b /server/models/actor
parent693c6586cb896a84ff0f897b1c242bcf7bdcbaee (diff)
downloadPeerTube-06c27593386459b0f6b85fc674460ea5af23f7f1.tar.gz
PeerTube-06c27593386459b0f6b85fc674460ea5af23f7f1.tar.zst
PeerTube-06c27593386459b0f6b85fc674460ea5af23f7f1.zip
Fix hooks definition
Diffstat (limited to 'server/models/actor')
-rw-r--r--server/models/actor/actor.ts5
1 files changed, 3 insertions, 2 deletions
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<Partial<AttributesOnly<ActorModel>>> {
496 }, { where, transaction }) 496 }, { where, transaction })
497 } 497 }
498 498
499 static loadAccountActorByVideoId (videoId: number): Promise<MActor> { 499 static loadAccountActorByVideoId (videoId: number, transaction: Transaction): Promise<MActor> {
500 const query = { 500 const query = {
501 include: [ 501 include: [
502 { 502 {
@@ -520,7 +520,8 @@ export class ActorModel extends Model<Partial<AttributesOnly<ActorModel>>> {
520 } 520 }
521 ] 521 ]
522 } 522 }
523 ] 523 ],
524 transaction
524 } 525 }
525 526
526 return ActorModel.unscoped().findOne(query) 527 return ActorModel.unscoped().findOne(query)