change runtimeCheckLog
This commit is contained in:
parent
e750e87107
commit
49ad47f89b
|
|
@ -193,14 +193,14 @@ export async function runtimeCheckLogs(folderPath) {
|
||||||
// "'"
|
// "'"
|
||||||
// );
|
// );
|
||||||
|
|
||||||
if (checkLog?.length === 0) {
|
// if (checkLog?.length === 0) {
|
||||||
await LogReport.create({
|
// await LogReport.create({
|
||||||
detected_content: value,
|
// detected_content: value,
|
||||||
line: index + 1,
|
// line: index + 1,
|
||||||
id_file: log?.id_ldf,
|
// id_file: log?.id_ldf,
|
||||||
});
|
// });
|
||||||
lines.push(index + 1);
|
// lines.push(index + 1);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
// if(checkSpecialVersion())
|
// if(checkSpecialVersion())
|
||||||
|
|
@ -279,19 +279,19 @@ export async function runtimeCheckLogs(folderPath) {
|
||||||
")\n";
|
")\n";
|
||||||
});
|
});
|
||||||
|
|
||||||
sendMessToZulip(
|
// sendMessToZulip(
|
||||||
"stream",
|
// "stream",
|
||||||
Env.get("ZULIP_STREAM_ALERT"),
|
// Env.get("ZULIP_STREAM_ALERT"),
|
||||||
Env.get("ZULIP_TOPIC_ALERT"),
|
// Env.get("ZULIP_TOPIC_ALERT"),
|
||||||
"------------\n\n:warning: :warning: **" +
|
// "------------\n\n:warning: :warning: **" +
|
||||||
fileName +
|
// fileName +
|
||||||
"**\n\n" +
|
// "**\n\n" +
|
||||||
content +
|
// content +
|
||||||
"\n\n" +
|
// "\n\n" +
|
||||||
spoiler +
|
// spoiler +
|
||||||
"\n\n***Issue found:***\n" +
|
// "\n\n***Issue found:***\n" +
|
||||||
issueFound
|
// issueFound
|
||||||
);
|
// );
|
||||||
}
|
}
|
||||||
}, 3000);
|
}, 3000);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue