diff --git a/app/utils/runtimeCheckLogs.ts b/app/utils/runtimeCheckLogs.ts index e9f3132..7795b40 100644 --- a/app/utils/runtimeCheckLogs.ts +++ b/app/utils/runtimeCheckLogs.ts @@ -90,8 +90,9 @@ export async function runtimeCheckLogs(folderPath) { const watcher = chokidar.watch( fileList.slice(0,40) ?.filter((i) => fileList_old.includes(i) === false) - .map((file) => folderPath + "/" + file) - ); + .map((file) => folderPath + "/" + file),{ + interval: 300000 + }); watcher.setMaxListeners(200); @@ -110,11 +111,6 @@ export async function runtimeCheckLogs(folderPath) { const allReport = await LogReport.query() .whereRaw(`DATE(created_at) = ?`, [today]) - // console.log(allReport) - - - - //get information file let fileDetect = allFile?.filter( (i) => i.$original.file_name === fileName