From 64a2fa5a54bd1d127586a50534603e9dc42d3b39 Mon Sep 17 00:00:00 2001 From: joseph le Date: Fri, 29 Sep 2023 14:09:39 +0700 Subject: [PATCH] add middleware writeLog --- app/utils/checkIndexSN.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/utils/checkIndexSN.ts b/app/utils/checkIndexSN.ts index a4b677c..7234818 100644 --- a/app/utils/checkIndexSN.ts +++ b/app/utils/checkIndexSN.ts @@ -23,7 +23,7 @@ export const checkIndexSN = async (content, beginLine, nameF) => { ?.split(":")[1] ?.replace("\r", "") .trim() !== "" && - SN !== "N/A" && + SN !== "N/A" && SN.length>4 && i >= beginLine ) { if (output.some((u) => u.SN === SN)) {