diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-11 15:02:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-11 15:03:47 +0200 |
commit | 823c34c07fc0df81110098ee1032e9d3ed70b662 (patch) | |
tree | 4d15bc0e09766552434ee50ad5f6098bd2f74ac4 /server/controllers/api/video-playlist.ts | |
parent | 81f14b911211be065448e92bcc253f470c5ff2a9 (diff) | |
download | PeerTube-823c34c07fc0df81110098ee1032e9d3ed70b662.tar.gz PeerTube-823c34c07fc0df81110098ee1032e9d3ed70b662.tar.zst PeerTube-823c34c07fc0df81110098ee1032e9d3ed70b662.zip |
Fix reset sequelize instance
Diffstat (limited to 'server/controllers/api/video-playlist.ts')
-rw-r--r-- | server/controllers/api/video-playlist.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 | } |