[Server] Some performance improvements
This commit is contained in:
parent
e52965a923
commit
1f88c4d40c
14 changed files with 74 additions and 8 deletions
|
|
@ -41,6 +41,11 @@ module.exports = (params, user) =>
|
|||
// Get followee
|
||||
const followee = await User.findOne({
|
||||
_id: new mongo.ObjectID(userId)
|
||||
}, {
|
||||
fields: {
|
||||
data: false,
|
||||
profile: false
|
||||
}
|
||||
});
|
||||
|
||||
if (followee === null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue