aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
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/controllers/api
parent7fc1012ffdd1fc06504c8842d4a24826e69a419a (diff)
downloadPeerTube-597f771f3f2bfe4b1e7234a5760e23f0283e2b29.tar.gz
PeerTube-597f771f3f2bfe4b1e7234a5760e23f0283e2b29.tar.zst
PeerTube-597f771f3f2bfe4b1e7234a5760e23f0283e2b29.zip
Fix video update transaction
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/videos/update.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/videos/update.ts b/server/controllers/api/videos/update.ts
index fab1c2268..a0aa13d71 100644
--- a/server/controllers/api/videos/update.ts
+++ b/server/controllers/api/videos/update.ts
@@ -104,7 +104,7 @@ export async function updateVideo (req: express.Request, res: express.Response)
104 104
105 // Force updatedAt attribute change 105 // Force updatedAt attribute change
106 if (!video.changed()) { 106 if (!video.changed()) {
107 await video.setAsRefreshed() 107 await video.setAsRefreshed(t)
108 } 108 }
109 109
110 const videoInstanceUpdated = await video.save(sequelizeOptions) as MVideoFullLight 110 const videoInstanceUpdated = await video.save(sequelizeOptions) as MVideoFullLight