fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit dbdeecca50 - Show all commits

View file

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