GWM
This commit is contained in:
parent
38f97d197f
commit
2c18494b08
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user