From 5550b21bf82ee3c41a5bf735c133eb30e8b8e869 Mon Sep 17 00:00:00 2001 From: joseph le Date: Wed, 4 Oct 2023 12:13:42 +0700 Subject: [PATCH] change runtimeCheckLog --- app/utils/runtimeCheckLogs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/runtimeCheckLogs.ts b/app/utils/runtimeCheckLogs.ts index 653c256..0b0d34d 100644 --- a/app/utils/runtimeCheckLogs.ts +++ b/app/utils/runtimeCheckLogs.ts @@ -87,7 +87,7 @@ export async function runtimeCheckLogs(folderPath) { // Watch for changes in the files listed async function watchFilesInList() { //only check new file ---> fileList - fileList_old = new file - let listFileWatch = fileList.slice(0, 40)?.filter((i) => fileList_old.includes(i) === false).map((file) => folderPath + "/" + file) + let listFileWatch = fileList?.filter((i) => fileList_old.includes(i) === false).map((file) => folderPath + "/" + file) const watcher = chokidar.watch( listFileWatch, {