aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/video-channel.ts2
-rw-r--r--server/controllers/api/video-playlist.ts2
-rw-r--r--server/controllers/api/videos/update.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/video-channel.ts b/server/controllers/api/video-channel.ts
index 5b9fb794a..c6d144f79 100644
--- a/server/controllers/api/video-channel.ts
+++ b/server/controllers/api/video-channel.ts
@@ -310,7 +310,7 @@ async function updateVideoChannel (req: express.Request, res: express.Response)
310 310
311 // If the transaction is retried, sequelize will think the object has not changed 311 // If the transaction is retried, sequelize will think the object has not changed
312 // So we need to restore the previous fields 312 // So we need to restore the previous fields
313 resetSequelizeInstance(videoChannelInstance) 313 await resetSequelizeInstance(videoChannelInstance)
314 314
315 throw err 315 throw err
316 } 316 }
diff --git a/server/controllers/api/video-playlist.ts b/server/controllers/api/video-playlist.ts
index 08b0f971d..de32dec88 100644
--- a/server/controllers/api/video-playlist.ts
+++ b/server/controllers/api/video-playlist.ts
@@ -276,7 +276,7 @@ async function updateVideoPlaylist (req: express.Request, res: express.Response)
276 276
277 // If the transaction is retried, sequelize will think the object has not changed 277 // If the transaction is retried, sequelize will think the object has not changed
278 // So we need to restore the previous fields 278 // So we need to restore the previous fields
279 resetSequelizeInstance(videoPlaylistInstance) 279 await resetSequelizeInstance(videoPlaylistInstance)
280 280
281 throw err 281 throw err
282 } 282 }
diff --git a/server/controllers/api/videos/update.ts b/server/controllers/api/videos/update.ts
index e6197c4b1..5ab54a006 100644
--- a/server/controllers/api/videos/update.ts
+++ b/server/controllers/api/videos/update.ts
@@ -152,7 +152,7 @@ async function updateVideo (req: express.Request, res: express.Response) {
152 } catch (err) { 152 } catch (err) {
153 // If the transaction is retried, sequelize will think the object has not changed 153 // If the transaction is retried, sequelize will think the object has not changed
154 // So we need to restore the previous fields 154 // So we need to restore the previous fields
155 resetSequelizeInstance(videoFromReq) 155 await resetSequelizeInstance(videoFromReq)
156 156
157 throw err 157 throw err
158 } finally { 158 } finally {