refs #5446 Insert in image.updated (ms to sec)
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Guillermo Bonet 2023-04-14 09:20:49 +02:00
parent 32c5ced55b
commit 0e286eabe0
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -78,7 +78,7 @@ module.exports = Self => {
{
name: fileName,
collectionFk: collectionName,
updated: Date.vnNow(),
updated: Date.vnNow() / 1000,
},
myOptions
);