validation message modified
This commit is contained in:
parent
6639ab8c8d
commit
c67fc05115
@ -171,7 +171,7 @@ exports.createEstablishment = async (req, res) => {
|
||||
}
|
||||
const existingEstablishment = await Establishment.findOne({where: { establishment_code }, });
|
||||
if (existingEstablishment) {
|
||||
return res.status(400).send({status: "failed",message: "Establishment code already exists", });
|
||||
return res.status(400).send({status: "failed",message: "Unique License Number already exists", });
|
||||
}
|
||||
const existingUser = await EstablishmentUser.findOne({
|
||||
where: { email: establishment_user.email }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user