From 597f771f3f2bfe4b1e7234a5760e23f0283e2b29 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 10 Nov 2021 15:52:22 +0100 Subject: Fix video update transaction --- server/controllers/api/videos/update.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers/api/videos') diff --git a/server/controllers/api/videos/update.ts b/server/controllers/api/videos/update.ts index fab1c2268..a0aa13d71 100644 --- a/server/controllers/api/videos/update.ts +++ b/server/controllers/api/videos/update.ts @@ -104,7 +104,7 @@ export async function updateVideo (req: express.Request, res: express.Response) // Force updatedAt attribute change if (!video.changed()) { - await video.setAsRefreshed() + await video.setAsRefreshed(t) } const videoInstanceUpdated = await video.save(sequelizeOptions) as MVideoFullLight -- cgit v1.2.3