This commit is contained in:
parent
2bb99bf093
commit
66e8f149ea
|
@ -23,6 +23,7 @@ logs:
|
||||||
- itemTag
|
- itemTag
|
||||||
- name: item
|
- name: item
|
||||||
showField: name
|
showField: name
|
||||||
|
showId: id
|
||||||
logFields:
|
logFields:
|
||||||
- size
|
- size
|
||||||
exclude:
|
exclude:
|
||||||
|
|
|
@ -80,7 +80,8 @@ module.exports = class MyLogger {
|
||||||
oldInstance = ?,
|
oldInstance = ?,
|
||||||
newInstance = ?,
|
newInstance = ?,
|
||||||
changedModelId = ?,
|
changedModelId = ?,
|
||||||
changedModelValue = ?`
|
changedModelValue = ?,
|
||||||
|
summaryId = ?`
|
||||||
);
|
);
|
||||||
logInfo.fetchStmt = await db.prepare(
|
logInfo.fetchStmt = await db.prepare(
|
||||||
`SELECT id FROM ${sqlTable}
|
`SELECT id FROM ${sqlTable}
|
||||||
|
@ -512,7 +513,7 @@ module.exports = class MyLogger {
|
||||||
oldI = change.instance;
|
oldI = change.instance;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
const summaryId = row[tableInfo.conf.showId];
|
||||||
const modelId = row[tableInfo.idName];
|
const modelId = row[tableInfo.idName];
|
||||||
const modelValue = change.modelValue ?? null;
|
const modelValue = change.modelValue ?? null;
|
||||||
const oldInstance = oldI ? JSON.stringify(oldI) : null;
|
const oldInstance = oldI ? JSON.stringify(oldI) : null;
|
||||||
|
@ -553,7 +554,8 @@ module.exports = class MyLogger {
|
||||||
oldInstance,
|
oldInstance,
|
||||||
newI ? JSON.stringify(newI) : null,
|
newI ? JSON.stringify(newI) : null,
|
||||||
modelId,
|
modelId,
|
||||||
modelValue
|
modelValue,
|
||||||
|
summaryId
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue