summaryrefslogtreecommitdiff
path: root/src/api/common
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-01-18 06:10:56 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-01-18 06:10:56 +0900
commit3fa905dee2a79035c0aef53e4999bc0d2be2633a (patch)
tree8c6fbda64bb1b1fdee6d19dca311885b49ce8ab8 /src/api/common
parent[Test] Add some tests (diff)
downloadsharkey-3fa905dee2a79035c0aef53e4999bc0d2be2633a.tar.gz
sharkey-3fa905dee2a79035c0aef53e4999bc0d2be2633a.tar.bz2
sharkey-3fa905dee2a79035c0aef53e4999bc0d2be2633a.zip
[Server] :v:
Diffstat (limited to 'src/api/common')
-rw-r--r--src/api/common/get-friends.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/common/get-friends.ts b/src/api/common/get-friends.ts
index 6703382e8f..db6313816d 100644
--- a/src/api/common/get-friends.ts
+++ b/src/api/common/get-friends.ts
@@ -10,7 +10,9 @@ export default async (me: mongodb.ObjectID, includeMe: boolean = true) => {
// 削除されたドキュメントは除く
deleted_at: { $exists: false }
}, {
- followee_id: true
+ fields: {
+ followee_id: true
+ }
});
// ID list of other users who the I follows