Skip to content
Snippets Groups Projects
Commit 43e6ddc1 authored by syuilo's avatar syuilo
Browse files

Fix

parent 44b6ddb2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment