diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-02-22 13:08:33 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-02-22 13:08:33 +0900 |
| commit | 1f88c4d40c3e6dba6da173496e444e46323d84c5 (patch) | |
| tree | d1bc4b51f24c7e3c5fa89503470f7ea6d9628696 /src/api/endpoints/aggregation/users/following.js | |
| parent | Remove unused import (diff) | |
| download | misskey-1f88c4d40c3e6dba6da173496e444e46323d84c5.tar.gz misskey-1f88c4d40c3e6dba6da173496e444e46323d84c5.tar.bz2 misskey-1f88c4d40c3e6dba6da173496e444e46323d84c5.zip | |
[Server] Some performance improvements
Diffstat (limited to 'src/api/endpoints/aggregation/users/following.js')
| -rw-r--r-- | src/api/endpoints/aggregation/users/following.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/api/endpoints/aggregation/users/following.js b/src/api/endpoints/aggregation/users/following.js index 785e5a15c3..9647639fbb 100644 --- a/src/api/endpoints/aggregation/users/following.js +++ b/src/api/endpoints/aggregation/users/following.js @@ -25,6 +25,10 @@ module.exports = (params) => // Lookup user const user = await User.findOne({ _id: new mongo.ObjectID(userId) + }, { + fields: { + _id: true + } }); if (user === null) { |