From 217e1cc177289dab840d5cf2205d6971286cd152 Mon Sep 17 00:00:00 2001 From: guillermo Date: Tue, 23 Jul 2024 11:41:50 +0200 Subject: [PATCH] Revert "Merge pull request 'feat: refs #6449 addSummaryId' (#3) from 6449-addSummaryId into master" This reverts commit 1e2948506e54120a6e4d65d0bbd77d3403d02994, reversing changes made to 2bb99bf093d855467c259490d6ec583f32dbcf8f. --- config/logs.yml | 1 - mylogger.js | 12 ++++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/config/logs.yml b/config/logs.yml index 6d35364..204a61b 100644 --- a/config/logs.yml +++ b/config/logs.yml @@ -23,7 +23,6 @@ logs: - itemTag - name: item showField: name - showId: id logFields: - size exclude: diff --git a/mylogger.js b/mylogger.js index cffc001..be2c508 100644 --- a/mylogger.js +++ b/mylogger.js @@ -80,8 +80,7 @@ module.exports = class MyLogger { oldInstance = ?, newInstance = ?, changedModelId = ?, - changedModelValue = ?, - summaryId = ?` + changedModelValue = ?` ); logInfo.fetchStmt = await db.prepare( `SELECT id FROM ${sqlTable} @@ -96,8 +95,7 @@ module.exports = class MyLogger { SET originFk = ?, creationDate = ?, oldInstance = ?, - changedModelValue = ?, - summaryId = ? + changedModelValue = ? WHERE id = ?` ); } @@ -514,7 +512,7 @@ module.exports = class MyLogger { oldI = change.instance; break; } - const summaryId = row[tableInfo.conf.showId]; + const modelId = row[tableInfo.idName]; const modelValue = change.modelValue ?? null; const oldInstance = oldI ? JSON.stringify(oldI) : null; @@ -540,7 +538,6 @@ module.exports = class MyLogger { created, oldInstance, modelValue, - summaryId, deleteRow.id ]); } @@ -556,8 +553,7 @@ module.exports = class MyLogger { oldInstance, newI ? JSON.stringify(newI) : null, modelId, - modelValue, - summaryId + modelValue ]); }