Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
devamdoshi212 committed Nov 25, 2023
2 parents 0385e4a + 1dbc3fa commit 1826fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Controller/GuestController.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const instructorModel = require("../Model/instructorModel");
// Get all data controller
(module.exports.getAllUsers = async function (req, res) {
try {
const Guests = await Guest.find(req.query);
const Guests = await Guest.find(req.query).populate('SportComplexId').populate('sport');
res.status(200).json(Guests);
} catch (error) {
res.status(500).json({ error: error.message });
Expand Down

0 comments on commit 1826fec

Please sign in to comment.