aggiornamenti su PCB

This commit is contained in:
Surya Paolo
2024-10-22 15:26:29 +02:00
parent 0d466f01b6
commit 27aa42507a
8 changed files with 33 additions and 31 deletions

View File

@@ -227,11 +227,9 @@ module.exports.findAllIdApp = async function (idapp, code, id) {
module.exports.getProductByCode = function (idapp, code) {
return productInfo.findAllIdApp(idapp, code);
}
module.exports.replaceProductImgToImageFile = async function () {
module.exports.replaceProductImgToImageFile = async function (abilitaserver) {
const ProductInfo = this;
let abilitaserver = true;
if (abilitaserver) {
// const result = await ProductInfo.updateMany({ "img": { $exists: true } }, { $rename: { 'img': 'imagefile' } });