From 5cf027bdc46f1bf214c4cf26eee17ebda228004f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 10 Nov 2021 14:34:02 +0100 Subject: Force video updatedAt update on update --- server/controllers/api/videos/update.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'server/controllers/api/videos/update.ts') diff --git a/server/controllers/api/videos/update.ts b/server/controllers/api/videos/update.ts index a98a3e67c..07f9690ec 100644 --- a/server/controllers/api/videos/update.ts +++ b/server/controllers/api/videos/update.ts @@ -99,6 +99,11 @@ export async function updateVideo (req: express.Request, res: express.Response) isNewVideo = await updateVideoPrivacy({ videoInstance, videoInfoToUpdate, hadPrivacyForFederation, transaction: t }) } + // Force updatedAt attribute change + if (!videoInstance.changed()) { + await videoInstance.setAsRefreshed() + } + const videoInstanceUpdated = await videoInstance.save(sequelizeOptions) as MVideoFullLight // Thumbnail & preview updates? -- cgit v1.2.3