This commit is contained in:
Gowtham M 2025-10-29 13:01:35 +05:30
parent 38f97d197f
commit 2c18494b08

View File

@ -344,11 +344,11 @@ exports.getEstablishmentById = async (req, res) => {
const data = await Establishment.findByPk(req.params.id, { const data = await Establishment.findByPk(req.params.id, {
include: [ include: [
// { {
// model: EstablishmentUser, model: EstablishmentUser,
// as: "users", as: "users",
// attributes: ["id", "name", "email", "is_active"], attributes: ["id", "name", "email", "gender", "is_active"],
// }, },
{ {
model: CityTown, model: CityTown,
as: "establishment_city", as: "establishment_city",