edit
This commit is contained in:
@@ -10,8 +10,13 @@ const serialChecker = (serial, type = 'guaranteeSerial', g = 1) => {
|
||||
if (type === 'guaranteeSerial') exelsPath = guaranteeSerialsPath + `/${g}`;
|
||||
if (type === 'orginality') exelsPath = productSerialsPath + `/${g}`;
|
||||
|
||||
const lowerSerial = serial.toLowerCase().replace("-", "").replace("_", "");
|
||||
|
||||
const newTxt = serial.toLowerCase().split("-")
|
||||
let lowerSerial = ""
|
||||
for(const item of newTxt){
|
||||
|
||||
lowerSerial += item
|
||||
|
||||
}
|
||||
try {
|
||||
const serialFiles = await fs.readdirSync(exelsPath);
|
||||
if ((serialFiles?.length) <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user