bug fixed

This commit is contained in:
unknown 2026-01-20 12:24:28 +05:30
parent ac292945b1
commit 0895a3dc90

View File

@ -177,7 +177,7 @@ exports.createEstablishment = async (req, res) => {
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) {
return res.status(400).send({