mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
parent
527cce33e6
commit
762017e486
@ -70,10 +70,10 @@ 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
|
||||||
|
Loading…
Reference in New Issue
Block a user