change runtimeCheckLog

This commit is contained in:
joseph le 2023-10-04 08:46:46 +07:00
parent e750e87107
commit 49ad47f89b
1 changed files with 21 additions and 21 deletions

View File

@ -193,14 +193,14 @@ export async function runtimeCheckLogs(folderPath) {
// "'"
// );
if (checkLog?.length === 0) {
await LogReport.create({
detected_content: value,
line: index + 1,
id_file: log?.id_ldf,
});
lines.push(index + 1);
}
// if (checkLog?.length === 0) {
// await LogReport.create({
// detected_content: value,
// line: index + 1,
// id_file: log?.id_ldf,
// });
// lines.push(index + 1);
// }
}
// if(checkSpecialVersion())
@ -279,19 +279,19 @@ export async function runtimeCheckLogs(folderPath) {
")\n";
});
sendMessToZulip(
"stream",
Env.get("ZULIP_STREAM_ALERT"),
Env.get("ZULIP_TOPIC_ALERT"),
"------------\n\n:warning: :warning: **" +
fileName +
"**\n\n" +
content +
"\n\n" +
spoiler +
"\n\n***Issue found:***\n" +
issueFound
);
// sendMessToZulip(
// "stream",
// Env.get("ZULIP_STREAM_ALERT"),
// Env.get("ZULIP_TOPIC_ALERT"),
// "------------\n\n:warning: :warning: **" +
// fileName +
// "**\n\n" +
// content +
// "\n\n" +
// spoiler +
// "\n\n***Issue found:***\n" +
// issueFound
// );
}
}, 3000);
}