refactor: fix type

This commit is contained in:
syuilo 2022-01-26 18:42:14 +09:00
parent c61f76d533
commit 5414944b21

View file

@ -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}`;