diff options
Diffstat (limited to 'server/controllers/api')
-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 e397127f3..589556f47 100644 --- a/server/controllers/api/videos/update.ts +++ b/server/controllers/api/videos/update.ts | |||
@@ -150,7 +150,7 @@ async function updateVideo (req: express.Request, res: express.Response) { | |||
150 | 150 | ||
151 | if (videoInfoToUpdate.name) await updateTorrentsMetadata(videoInstanceUpdated) | 151 | if (videoInfoToUpdate.name) await updateTorrentsMetadata(videoInstanceUpdated) |
152 | 152 | ||
153 | await federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, undefined) | 153 | await sequelizeTypescript.transaction(t => federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, t)) |
154 | 154 | ||
155 | if (wasConfidentialVideo) Notifier.Instance.notifyOnNewVideoIfNeeded(videoInstanceUpdated) | 155 | if (wasConfidentialVideo) Notifier.Instance.notifyOnNewVideoIfNeeded(videoInstanceUpdated) |
156 | 156 | ||