diff --git a/models/profile.js b/models/profile.js index 85b3f89..c66bd75 100644 --- a/models/profile.js +++ b/models/profile.js @@ -155,9 +155,6 @@ module.exports = { get: (e, id) => { const promise = new Promise((resolve, reject) => { ProfileModel.find({ _id: id }) - .populate({ - path: 'details' - }) .populate({ path: 'messages', select: 'order text image isUser',