change runtimeCheckLog

This commit is contained in:
joseph le 2023-10-04 08:44:14 +07:00
parent 2c4a0c7d11
commit e750e87107
1 changed files with 2 additions and 2 deletions

View File

@ -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