From 0fbc0dec59684527fad8772080a8e1f928c07ea1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 9 Dec 2021 15:44:54 +0100 Subject: Fix tests --- server/controllers/api/videos/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers/api') 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) { if (videoInfoToUpdate.name) await updateTorrentsMetadata(videoInstanceUpdated) - await federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, undefined) + await sequelizeTypescript.transaction(t => federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, t)) if (wasConfidentialVideo) Notifier.Instance.notifyOnNewVideoIfNeeded(videoInstanceUpdated) -- cgit v1.2.3