test-to-dev #1478

Merged
alexandre merged 53 commits from test-to-dev into dev 2023-04-24 06:54:33 +00:00
1 changed files with 4 additions and 3 deletions
Showing only changes of commit 1c4f919e89 - Show all commits

View File

@ -30,13 +30,14 @@ module.exports = Self => {
);
// Insert image row
const imageName = path.parse(fileName).name;
await models.Image.upsertWithWhere(
{
name: fileName,
name: imageName,
collectionFk: collectionName
},
{
name: fileName,
name: imageName,
collectionFk: collectionName,
updated: Date.vnNow() / 1000,
}
@ -50,7 +51,7 @@ module.exports = Self => {
if (entity) {
await entity.updateAttribute(
collection.property,
fileName
imageName
);
}