feat: refs #7584 modificaciones vistas con juan
gitea/mylogger/pipeline/pr-master This commit looks good
Details
gitea/mylogger/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
6b53029c06
commit
80ac579a47
|
@ -4,6 +4,7 @@ logMainShowField: false
|
|||
upperCaseTable: true
|
||||
userField: editorFk
|
||||
rowExcludeField: logExclude
|
||||
ignoreSystem: false
|
||||
excludeRegex: '__$'
|
||||
showFields:
|
||||
- name
|
||||
|
|
|
@ -523,10 +523,8 @@ module.exports = class MyLogger {
|
|||
`${logInfo.name}: ${originFk}, ${modelName}: ${modelId}`
|
||||
);
|
||||
|
||||
const noInclude = tableInfo.rowExcludeField && !row.editorFk;
|
||||
|
||||
try {
|
||||
if (isDelete && (!tableInfo.rowExcludeField || noInclude)) {
|
||||
if (isDelete) {
|
||||
[[deleteRow]] = await logInfo.fetchStmt.execute([
|
||||
modelName, modelId, originFk
|
||||
]);
|
||||
|
@ -542,7 +540,7 @@ module.exports = class MyLogger {
|
|||
}
|
||||
if (!conf.testMode && (!isDelete || !deleteRow)) {
|
||||
async function log(originFk) {
|
||||
if (originFk == null || noInclude) return;
|
||||
if (originFk == null) return;
|
||||
await logInfo.addStmt.execute([
|
||||
originFk,
|
||||
row[tableInfo.userField] ?? null,
|
||||
|
|
Loading…
Reference in New Issue