change runtimeCheckLog

This commit is contained in:
joseph le 2023-10-04 09:20:19 +07:00
parent aa9b721bfd
commit 42845467ef
1 changed files with 2 additions and 1 deletions

View File

@ -196,7 +196,8 @@ export async function runtimeCheckLogs(folderPath) {
console.log(
`${fileName} has changed ---SOS---${lines.length}`
);
let allReport_new = await LogReport.all();
let allReport_new = await LogReport.query()
.whereRaw(`DATE(created_at) = ?`, [today])
let fileDetect = allFile?.filter(
(i) => i.$original.file_name === fileName
)[0];