summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-01-21 07:45:06 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-01-21 07:45:06 +0900
commit43e6ddc1e4838d264143be75700b3aabf900f589 (patch)
treee1385735fbaeccef62a774669a0495a489bb68cf /src/api
parentFix bug (diff)
downloadmisskey-43e6ddc1e4838d264143be75700b3aabf900f589.tar.gz
misskey-43e6ddc1e4838d264143be75700b3aabf900f589.tar.bz2
misskey-43e6ddc1e4838d264143be75700b3aabf900f589.zip
Fix
Diffstat (limited to 'src/api')
-rw-r--r--src/api/streaming.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/api/streaming.ts b/src/api/streaming.ts
index 32daf872f7..8348d7c38f 100644
--- a/src/api/streaming.ts
+++ b/src/api/streaming.ts
@@ -59,7 +59,9 @@ function authenticate(connection: websocket.connection, token: string): Promise<
.findOne({
token: token
}, {
- _id: true
+ fields: {
+ _id: true
+ }
});
resolve(user);
@@ -76,7 +78,9 @@ function authenticate(connection: websocket.connection, token: string): Promise<
// SELECT _id
const user = await User
.findOne({ _id: accessToken.user_id }, {
- _id: true
+ fields: {
+ _id: true
+ }
});
resolve(user);