mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-28 01:03:08 +02:00
[API] Fix bug
This commit is contained in:
parent
ecac2990eb
commit
c93fe423ea
1 changed files with 0 additions and 4 deletions
|
@ -33,10 +33,6 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => {
|
||||||
// Lookup user
|
// Lookup user
|
||||||
const user = await User.findOne({
|
const user = await User.findOne({
|
||||||
_id: ps.userId
|
_id: ps.userId
|
||||||
}, {
|
|
||||||
fields: {
|
|
||||||
_id: true
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
if (user === null) {
|
if (user === null) {
|
||||||
|
|
Loading…
Reference in a new issue