fix esm
This commit is contained in:
parent
8dcdbddbfb
commit
4701127946
5 changed files with 13 additions and 13 deletions
|
|
@ -26,7 +26,7 @@ export async function resolveUser(username: string, host: string | null, option?
|
|||
|
||||
host = toPuny(host);
|
||||
|
||||
if (config.host == host) {
|
||||
if (config.host === host) {
|
||||
logger.info(`return local user: ${usernameLower}`);
|
||||
return await Users.findOne({ usernameLower, host: null }).then(u => {
|
||||
if (u == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue