add middleware writeLog

This commit is contained in:
joseph le 2023-09-29 13:34:54 +07:00
parent cb2cd65e13
commit c53e40cacc
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ export default class ErpsController {
);
// console.log(report);
return report.filter(
(i) => i.SN !== "" && /^[A-Z0-9-]{5,}$/.test(i.SN) === true && i.PID !==""
(i) => i.SN !== "" && /^[A-Z0-9-]{5,}$/.test(i.SN) === true && i.PID !=="" && SN!=="NA"
);
// }, 15000);
} catch (error) {