diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-09 15:44:54 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-09 15:44:54 +0100 |
commit | 0fbc0dec59684527fad8772080a8e1f928c07ea1 (patch) | |
tree | fbbb76187cf83aa4e7c6ce32e36be2d53a28bdc0 /server/controllers/api/videos | |
parent | 9e847c17f968076287025c798b87506a8d50bb93 (diff) | |
download | PeerTube-0fbc0dec59684527fad8772080a8e1f928c07ea1.tar.gz PeerTube-0fbc0dec59684527fad8772080a8e1f928c07ea1.tar.zst PeerTube-0fbc0dec59684527fad8772080a8e1f928c07ea1.zip |
Fix tests
Diffstat (limited to 'server/controllers/api/videos')
-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 | ||