- aggiunta campi Gas data + fix
This commit is contained in:
@@ -9,7 +9,7 @@ const tools = require('../tools/general');
|
||||
|
||||
const { City } = require('../models/city');
|
||||
const Product = require('../models/product');
|
||||
const ProductInfo = require('../models/productinfo');
|
||||
const ProductInfo = require('../models/productInfo');
|
||||
const CatProd = require('../models/catprod');
|
||||
|
||||
var { authenticate } = require('../middleware/authenticate');
|
||||
@@ -104,7 +104,7 @@ router.post('/import', authenticate, async (req, res) => {
|
||||
if (risrecInfo._id) {
|
||||
// Record existed, so it was updated
|
||||
let arrfieldchange = tools.differentObjects(productInfo, recnewInfo);
|
||||
if (arrfieldchange.length > 0) {
|
||||
if (arrfieldchange && arrfieldchange.length > 0) {
|
||||
// updated++;
|
||||
console.log('Changed: ', recnewInfo.name + ': ' + arrfieldchange);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user