change runtimeCheckLog

This commit is contained in:
joseph le 2023-10-04 12:13:42 +07:00
parent 6d04a73c35
commit 5550b21bf8
1 changed files with 1 additions and 1 deletions

View File

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