- 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:
@@ -6206,4 +6206,10 @@ module.exports = {
|
||||
fixFilePath(myfilepath) {
|
||||
return myfilepath.replace(/\\/g, '/');
|
||||
},
|
||||
|
||||
getDateNow() {
|
||||
const mydate = new Date();
|
||||
return mydate;
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user