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