Skip to content
Snippets Groups Projects
Commit 449709f6 authored by syuilo's avatar syuilo
Browse files

refactor: fix type

parent 5a33789c
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ export async function resolveUser(username: string, host: string | null, option? ...@@ -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}`; const acctLower = `${usernameLower}@${host}`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment