update runtimeCheckLog

This commit is contained in:
joseph le 2023-09-21 11:26:52 +07:00
parent 50863bc712
commit 3669242ae3
1 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ export async function runtimeCheckLogs(folderPath) {
// fileName
// );
//check report of line not exist
let checkLog = allReport?.filter((report)=>report.id_file === log?.id_ldf && report.line === (index + 1) && report.detected_content === value)
let checkLog = allReport?.filter((report)=>report.$original.id_file === log?.id_ldf && report.$original.line === (index + 1) && report.$original.detected_content === value)
// await Database.rawQuery(
// "select * from log_reports where id_file = " +
@ -179,7 +179,7 @@ export async function runtimeCheckLogs(folderPath) {
// "'"
// );
if (checkLog[0].length === 0) {
if (checkLog[0]?.length === 0) {
await LogReport.create({
detected_content: value,
line: index + 1,