From 2c18494b08fa8139922c69da727b682c11034198 Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Wed, 29 Oct 2025 13:01:35 +0530 Subject: [PATCH] GWM --- app/controllers/establishment.controller.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/controllers/establishment.controller.js b/app/controllers/establishment.controller.js index 59b9b26..2e8bdca 100644 --- a/app/controllers/establishment.controller.js +++ b/app/controllers/establishment.controller.js @@ -344,11 +344,11 @@ exports.getEstablishmentById = async (req, res) => { const data = await Establishment.findByPk(req.params.id, { include: [ - // { - // model: EstablishmentUser, - // as: "users", - // attributes: ["id", "name", "email", "is_active"], - // }, + { + model: EstablishmentUser, + as: "users", + attributes: ["id", "name", "email", "gender", "is_active"], + }, { model: CityTown, as: "establishment_city",