mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 07:43:09 +02:00
parent
2776934728
commit
04553de230
1 changed files with 3 additions and 3 deletions
|
@ -70,10 +70,10 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => {
|
|||
: { usernameLower: ps.username.toLowerCase(), host: null };
|
||||
|
||||
user = await User.findOne(q, cursorOption);
|
||||
}
|
||||
|
||||
if (user === null) {
|
||||
return rej('user not found');
|
||||
}
|
||||
if (user === null) {
|
||||
return rej('user not found');
|
||||
}
|
||||
|
||||
// Send response
|
||||
|
|
Loading…
Reference in a new issue