diff --git a/controllers/RequirementController.js b/controllers/RequirementController.js index eb44e84..f44c0fa 100644 --- a/controllers/RequirementController.js +++ b/controllers/RequirementController.js @@ -260,7 +260,7 @@ export const AddComment = async (req, res) => { export const getAllComment = async (req, res) => { try { - const comment = await RequirementCommentModel.find() + const comment = await RequirementCommentModel.find().populate('userId') res.status(200).json({ success: true, msg: " get All Comment Successfully!!", diff --git a/tmp/tmp-1-1659073689697 b/tmp/tmp-1-1659073689697 new file mode 100644 index 0000000..b9a863b Binary files /dev/null and b/tmp/tmp-1-1659073689697 differ