Fix populate

This commit is contained in:
Mr Swift
2024-08-06 19:05:45 +03:30
parent 8f17162b11
commit 7c45bb501d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ module.exports.gpsRequest = [
module.exports.getAllRequest = [
async (req, res) => {
const data = await RequestGPS.find({}).sort({ status: 1 })
const data = await RequestGPS.find({}).sort({ status: 1 }).populate('userId')
res.status(200).json(data)
}
]