1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-30 07:48:13 +09:00
This commit is contained in:
syuilo 2017-01-21 07:45:06 +09:00
parent 44b6ddb262
commit 43e6ddc1e4

View File

@ -59,7 +59,9 @@ function authenticate(connection: websocket.connection, token: string): Promise<
.findOne({
token: token
}, {
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 }, {
fields: {
_id: true
}
});
resolve(user);