From 597f771f3f2bfe4b1e7234a5760e23f0283e2b29 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 10 Nov 2021 15:52:22 +0100 Subject: Fix video update transaction --- server/models/video/video.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/models/video') diff --git a/server/models/video/video.ts b/server/models/video/video.ts index ba4cf541b..003741da0 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts @@ -1754,8 +1754,8 @@ export class VideoModel extends Model>> { return this.hasPrivacyForFederation() === false && isPrivacyForFederation(newPrivacy) === true } - setAsRefreshed () { - return setAsUpdated('video', this.id) + setAsRefreshed (transaction?: Transaction) { + return setAsUpdated('video', this.id, transaction) } requiresAuth () { -- cgit v1.2.3