5013-observaciones_facturas #1401

Merged
vicent merged 8 commits from 5013-observaciones_facturas into dev 2023-03-24 09:56:59 +00:00
1 changed files with 25 additions and 25 deletions
Showing only changes of commit 91cc91716f - Show all commits

View File

@ -102,8 +102,8 @@ module.exports = Self => {
const logs = [];
for (const row of result) {
const changes = [];
const oldInstance = JSON.parse(row.oldInstance);
const newInstance = JSON.parse(row.newInstance);
const oldInstance = JSON.parse(row.oldInstance) || {};
const newInstance = JSON.parse(row.newInstance) || {};
const mergedProperties = [...Object.keys(oldInstance), ...Object.keys(newInstance)];
const properties = new Set(mergedProperties);
for (const property of properties) {