Debug: change auth and fix a few small mistakes

This commit is contained in:
Mr Swift
2024-10-27 17:21:04 +03:30
parent 03f9c164db
commit a83e84a441
3 changed files with 10 additions and 15 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ module.exports.deviceRegistration = [
if (!device) {
throw res.status(404).json({ msg: 'این IMEI وجود ندارد' })
// eslint-disable-next-line eqeqeq
} else if (device.status == 1) {
} else if (device.status == 1 || device.status == 0) {
throw res.status(404).json({ msg: 'این IMEI قبلا ثبت شده' })
} else {