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