Update asanServiceSerialChecker.js
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user