forked from FoundKeyGang/FoundKey
fix: use correct variable
Fixes an error introduced in commit 7a80015225
.
This commit is contained in:
parent
609fb91ca1
commit
961fb0d2df
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ const logger = remoteLogger.createSubLogger('resolve-user');
|
|||
export async function resolveUser(username: string, idnHost: string | null): Promise<User> {
|
||||
const usernameLower = username.toLowerCase();
|
||||
|
||||
if (host == null) {
|
||||
if (idnHost == null) {
|
||||
logger.info(`return local user: ${usernameLower}`);
|
||||
return await Users.findOneBy({ usernameLower, host: IsNull() }).then(u => {
|
||||
if (u == null) {
|
||||
|
|
Loading…
Reference in a new issue