bug fixed
This commit is contained in:
parent
ac292945b1
commit
0895a3dc90
@ -177,7 +177,7 @@ exports.createEstablishment = async (req, res) => {
|
|||||||
where: { email: establishment_user.email }
|
where: { email: establishment_user.email }
|
||||||
});
|
});
|
||||||
|
|
||||||
const checkEmailInAdminUser = await User.findOne({ where: { email, is_active: true } });
|
const checkEmailInAdminUser = await User.findOne({ where: { email: establishment_user.email, is_active: true } });
|
||||||
|
|
||||||
if (existingUser) {
|
if (existingUser) {
|
||||||
return res.status(400).send({
|
return res.status(400).send({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user