aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-10 15:52:22 +0100
committerChocobozzz <me@florianbigard.com>2021-11-10 15:52:22 +0100
commit597f771f3f2bfe4b1e7234a5760e23f0283e2b29 (patch)
treed53c871e886a718c48108be8d99801c195f9069b /server/models
parent7fc1012ffdd1fc06504c8842d4a24826e69a419a (diff)
downloadPeerTube-597f771f3f2bfe4b1e7234a5760e23f0283e2b29.tar.gz
PeerTube-597f771f3f2bfe4b1e7234a5760e23f0283e2b29.tar.zst
PeerTube-597f771f3f2bfe4b1e7234a5760e23f0283e2b29.zip
Fix video update transaction
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video.ts4
1 files changed, 2 insertions, 2 deletions
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<Partial<AttributesOnly<VideoModel>>> {
1754 return this.hasPrivacyForFederation() === false && isPrivacyForFederation(newPrivacy) === true 1754 return this.hasPrivacyForFederation() === false && isPrivacyForFederation(newPrivacy) === true
1755 } 1755 }
1756 1756
1757 setAsRefreshed () { 1757 setAsRefreshed (transaction?: Transaction) {
1758 return setAsUpdated('video', this.id) 1758 return setAsUpdated('video', this.id, transaction)
1759 } 1759 }
1760 1760
1761 requiresAuth () { 1761 requiresAuth () {