]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/video-channel.ts
Set actor preferred name case insensitive
[github/Chocobozzz/PeerTube.git] / server / controllers / api / video-channel.ts
index 5b9fb794ae9bb94a7afba909efc060aa59e34a48..c6d144f79290a89ce4b474f110921d9cf6df00f0 100644 (file)
@@ -310,7 +310,7 @@ async function updateVideoChannel (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(videoChannelInstance)
+    await resetSequelizeInstance(videoChannelInstance)
 
     throw err
   }