]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/video-playlist.ts
Fix reset sequelize instance
[github/Chocobozzz/PeerTube.git] / server / controllers / api / video-playlist.ts
index 08b0f971d516515a6f28bc8783db0aa5f7411b35..de32dec88d2a26015d8f11d2f1e0b0cc441cb303 100644 (file)
@@ -276,7 +276,7 @@ async function updateVideoPlaylist (req: express.Request, res: express.Response)
 
     // If the transaction is retried, sequelize will think the object has not changed
     // So we need to restore the previous fields
-    resetSequelizeInstance(videoPlaylistInstance)
+    await resetSequelizeInstance(videoPlaylistInstance)
 
     throw err
   }