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) { // 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);
} }