- Aggiunta della funzione Cron
- Flag: Pubblicati OnLine + Solo CagalogoGenerale + Dettagli
This commit is contained in:
@@ -435,7 +435,7 @@ class Macro {
|
||||
|
||||
let count = 0;
|
||||
if (Array.isArray(recproducts)) {
|
||||
if (recproducts.length > 10 && lavoromassivo) {
|
||||
if (recproducts.length > 10 && lavoromassivo && options.rimuovieventualiCancellati) {
|
||||
// rimuovi dalla tabella productInfo tutti i campi date_updated_fromGM
|
||||
const result = await ProductInfo.updateMany({ idapp: options.idapp }, { $unset: { date_updated_fromGM: null } });
|
||||
let quanti_rimossi = result.modifiedCount;
|
||||
@@ -461,7 +461,7 @@ class Macro {
|
||||
//}
|
||||
}
|
||||
|
||||
if (rimuoviTabellePerIniziare) {
|
||||
if (rimuoviTabellePerIniziare && options.rimuovieventualiCancellati) {
|
||||
await ProductInfo.removeProductInfoWithoutDateUpdatedFromGM(options.idapp);
|
||||
}
|
||||
if (myjob)
|
||||
|
||||
Reference in New Issue
Block a user