From 0e286eabe063e7152fd3cead4b91e83c01202708 Mon Sep 17 00:00:00 2001 From: guillermo Date: Fri, 14 Apr 2023 09:20:49 +0200 Subject: [PATCH] refs #5446 Insert in image.updated (ms to sec) --- back/models/image.js | 2 +- modules/item/back/methods/item-image-queue/download.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/back/models/image.js b/back/models/image.js index 3d3b03879..c68f6c84b 100644 --- a/back/models/image.js +++ b/back/models/image.js @@ -77,7 +77,7 @@ module.exports = Self => { const newImage = await Self.upsertWithWhere(data, { name: fileName, collectionFk: collectionName, - updated: Date.vnNow() + updated: Date.vnNow() / 1000 }, myOptions); // Resizes and saves the image diff --git a/modules/item/back/methods/item-image-queue/download.js b/modules/item/back/methods/item-image-queue/download.js index cdc0fe049..d8076359f 100644 --- a/modules/item/back/methods/item-image-queue/download.js +++ b/modules/item/back/methods/item-image-queue/download.js @@ -78,7 +78,7 @@ module.exports = Self => { { name: fileName, collectionFk: collectionName, - updated: Date.vnNow(), + updated: Date.vnNow() / 1000, }, myOptions );