This commit is contained in:
parent
fda5726f55
commit
35c92e43ad
|
@ -533,6 +533,7 @@ module.exports = class MyLogger {
|
||||||
);
|
);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
const reasonField = row[tableInfo.reasonField] ?? null;
|
||||||
if (isDelete) {
|
if (isDelete) {
|
||||||
[[deleteRow]] = await logInfo.fetchStmt.execute([
|
[[deleteRow]] = await logInfo.fetchStmt.execute([
|
||||||
modelName, modelId, originFk
|
modelName, modelId, originFk
|
||||||
|
@ -544,7 +545,7 @@ module.exports = class MyLogger {
|
||||||
oldInstance,
|
oldInstance,
|
||||||
modelValue,
|
modelValue,
|
||||||
summaryId,
|
summaryId,
|
||||||
row[tableInfo.reasonField] ?? null,
|
reasonField,
|
||||||
deleteRow.id
|
deleteRow.id
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
@ -562,7 +563,7 @@ module.exports = class MyLogger {
|
||||||
modelId,
|
modelId,
|
||||||
modelValue,
|
modelValue,
|
||||||
summaryId,
|
summaryId,
|
||||||
row[tableInfo.reasonField] ?? null
|
reasonField
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue