fix(basic.gblib): Allow MERGE keyword in storage #380. @othonlima

This commit is contained in:
Rodrigo Rodriguez 2023-11-25 14:14:17 -03:00
parent 30e6bf9b3b
commit dbdeecca50

View file

@ -1537,7 +1537,7 @@ export class SystemKeywords {
if (typeof obj[key] === 'function') {
continue;
}
if (typeof obj[key] !== 'object') {
if (typeof obj[key] !== 'object' || obj[key] instanceof Date) {
// If not defined already add the flattened field.
@ -1550,7 +1550,7 @@ export class SystemKeywords {
}
} else {
this.flattenJSON(obj[key], res, `${key}${extraKey}`, true);
obj[key] = this.flattenJSON(obj[key], res, `${key}${extraKey}`, true);
};
};
return res;