Debug: change auth and fix a few small mistakes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user