change runtimeCheckLog
This commit is contained in:
parent
b697175518
commit
a9f5963846
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue