fix: refs #6449 summaryId undefined
gitea/mylogger/pipeline/head This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-08-08 14:07:20 +02:00
parent 19bcd267c0
commit 4e709c2091
1 changed files with 2 additions and 1 deletions

View File

@ -492,6 +492,7 @@ module.exports = class MyLogger {
const isDelete = action == 'delete';
const isUpdate = action == 'update';
const created = new Date(evt.timestamp);
const showId = tableInfo.conf.showId;
for (const change of changes) {
let newI, oldI;
@ -514,7 +515,7 @@ module.exports = class MyLogger {
oldI = change.instance;
break;
}
const summaryId = row[tableInfo.conf.showId];
const summaryId = showId ? row[showId] : null;
const modelId = row[tableInfo.idName];
const modelValue = change.modelValue ?? null;
const oldInstance = oldI ? JSON.stringify(oldI) : null;