- Sistemato link pdf che ogni volta che si aggiorna prendeva il PDF dalla cache...

- Raccolta Cataloghi, procedura che li AUTO genera in automatico.
This commit is contained in:
Surya Paolo
2025-06-13 17:46:03 +02:00
parent 6b9ddc8986
commit 5668c620da
9 changed files with 223 additions and 109 deletions

View File

@@ -6206,4 +6206,10 @@ module.exports = {
fixFilePath(myfilepath) {
return myfilepath.replace(/\\/g, '/');
},
getDateNow() {
const mydate = new Date();
return mydate;
},
};

View File

@@ -1070,9 +1070,12 @@ module.exports = {
// modifiche ai campi se necessario, per esempio:
path: newpath,
title: title || newpath,
subtitle: '',
inmenu: false,
active: true,
date_updated: new Date(),
isTemplate: false,
author_username: '',
});
// Salva il nuovo record di Page
@@ -1112,7 +1115,7 @@ module.exports = {
const newElems = await MyElem.find({ idPage: newPage._id }).lean();
console.log('Duplicazione completata con successo.');
// console.log('Duplicazione completata con successo.');
const newPageOut = await MyPage.findById(newPage._id).lean();
return { newPage: newPageOut, newElems };