Skip to content

Commit

Permalink
Enhance subdivision and city attributes in fetchOne method: include t…
Browse files Browse the repository at this point in the history
…ype, latitude, and longitude
  • Loading branch information
guillecro committed Jan 28, 2025
1 parent 4dd38ec commit 0010cf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/challengeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ exports.fetchOne = async (req, res) => {
{
model: models.Subdivision,
as: "subdivision",
attributes: ["id", "name"],
attributes: ["id", "name", "type", "latitude", "longitude"],
include: [
{
model: models.City,
as: "city",
attributes: ["id", "name"],
attributes: ["id", "name", "latitude", "longitude" ],
},
],
},
Expand Down

0 comments on commit 0010cf6

Please sign in to comment.