Update asanServiceSerialChecker.js

This commit is contained in:
Mr Swift
2024-02-14 11:47:04 +03:30
parent bff18b1306
commit 229b096d77
+1 -1
View File
@@ -14,7 +14,7 @@ const serialChecker = async (serial, type = 'guaranteeSerial', g = 1) => {
try {
const serialFiles = await fs.readdirSync(exelsPath);
if((serialFiles?.length) <= 1){
if((serialFiles?.length) <= 0){
rej("این کد در سامانه موجود نیست")
}
serialFiles.forEach(async(file, i)=>{