This commit is contained in:
parent
aaa7a07849
commit
0610acbf6e
10 changed files with 134 additions and 41 deletions
|
|
@ -62,10 +62,6 @@ function authenticate(connection: websocket.connection, token: string): Promise<
|
|||
const user = await User
|
||||
.findOne({
|
||||
token: token
|
||||
}, {
|
||||
fields: {
|
||||
_id: true
|
||||
}
|
||||
});
|
||||
|
||||
resolve(user);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue