mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
Fix
This commit is contained in:
parent
5f96d485fd
commit
148b8ceae9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user