From 49ad47f89b966c4e9b76114879d55abccc5847eb Mon Sep 17 00:00:00 2001 From: joseph le Date: Wed, 4 Oct 2023 08:46:46 +0700 Subject: [PATCH] change runtimeCheckLog --- app/utils/runtimeCheckLogs.ts | 42 +++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/app/utils/runtimeCheckLogs.ts b/app/utils/runtimeCheckLogs.ts index d8fef7c..d7c3f62 100644 --- a/app/utils/runtimeCheckLogs.ts +++ b/app/utils/runtimeCheckLogs.ts @@ -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); }