diff --git a/app/utils/runtimeCheckLogs.ts b/app/utils/runtimeCheckLogs.ts index 127674d..d8fef7c 100644 --- a/app/utils/runtimeCheckLogs.ts +++ b/app/utils/runtimeCheckLogs.ts @@ -88,13 +88,13 @@ export async function runtimeCheckLogs(folderPath) { async function watchFilesInList() { //only check new file ---> fileList - fileList_old = new file const watcher = chokidar.watch( - fileList + fileList.slice(0,40) ?.filter((i) => fileList_old.includes(i) === false) .map((file) => folderPath + "/" + file) ); watcher.setMaxListeners(200); - await fileList + await fileList.slice(0,40) ?.filter((i) => fileList_old.includes(i) === false) ?.forEach((fileName) => { //path file