From 4e709c209198e02604ef445ef63fef5fe5f1d714 Mon Sep 17 00:00:00 2001 From: guillermo Date: Thu, 8 Aug 2024 14:07:20 +0200 Subject: [PATCH] fix: refs #6449 summaryId undefined --- mylogger.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mylogger.js b/mylogger.js index cffc001..601dbdf 100644 --- a/mylogger.js +++ b/mylogger.js @@ -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;