Update asanServiceSerialChecker.js

This commit is contained in:
Swift
2024-02-21 17:01:55 +03:30
parent 102b5d3e6a
commit 873cd439bd
+1 -1
View File
@@ -10,7 +10,7 @@ const serialChecker = (serial, type = 'guaranteeSerial', g = 1) => {
if (type === 'guaranteeSerial') exelsPath = guaranteeSerialsPath + `/${g}`; if (type === 'guaranteeSerial') exelsPath = guaranteeSerialsPath + `/${g}`;
if (type === 'orginality') exelsPath = productSerialsPath + `/${g}`; if (type === 'orginality') exelsPath = productSerialsPath + `/${g}`;
const lowerSerial = serial.toLowerCase(); const lowerSerial = serial.toLowerCase().replace("-", "").replace("_", "");
try { try {
const serialFiles = await fs.readdirSync(exelsPath); const serialFiles = await fs.readdirSync(exelsPath);