diff options
Diffstat (limited to 'server/controllers/api/videos')
-rw-r--r-- | server/controllers/api/videos/update.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |