mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 02:03:09 +02:00
refactor: fix type
This commit is contained in:
parent
5a33789cd1
commit
449709f6cb
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ export async function resolveUser(username: string, host: string | null, option?
|
|||
});
|
||||
}
|
||||
|
||||
const user = await Users.findOne({ usernameLower, host }, option) as IRemoteUser;
|
||||
const user = await Users.findOne({ usernameLower, host }, option) as IRemoteUser | null;
|
||||
|
||||
const acctLower = `${usernameLower}@${host}`;
|
||||
|
||||
|
|
Loading…
Reference in a new issue