aggiornamenti su PCB
This commit is contained in:
@@ -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' } });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user