Creazione Nutriben-natoropatia.it

This commit is contained in:
Surya Paolo
2025-05-11 21:59:25 +02:00
parent 6c254a6a8e
commit 09a05a11d5
6 changed files with 124 additions and 27 deletions

View File

@@ -513,13 +513,14 @@ connectToDatabase(connectionUrl, options)
let dirmain = '';
let filefrom = '';
let filefrom2 = '';
let dir = tools.getdirByIdApp(idapp) + dirmain + '/upload/';
try {
if (!tools.sulServer()) {
dirmain = server_constants.DIR_PUBLIC_LOCALE;
}
let dir = tools.getdirByIdApp(idapp) + dirmain + '/upload/';
for (const rec of arrlist) {
const myuser = await User.findOne({ idapp, _id: rec.userId }).lean();
if (myuser) {