diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-07 23:06:07 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-07 23:06:07 +0900 |
| commit | d9780606b3f69fc7fff96245c032c2e443dc3432 (patch) | |
| tree | 4df09a9e31ea23fd9620a9678f5ca763c423439e /src/remote | |
| parent | Fix bug (diff) | |
| download | sharkey-d9780606b3f69fc7fff96245c032c2e443dc3432.tar.gz sharkey-d9780606b3f69fc7fff96245c032c2e443dc3432.tar.bz2 sharkey-d9780606b3f69fc7fff96245c032c2e443dc3432.zip | |
Refactor
Diffstat (limited to 'src/remote')
| -rw-r--r-- | src/remote/resolve-user.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote/resolve-user.ts b/src/remote/resolve-user.ts index be846ab279..a10d3c2d84 100644 --- a/src/remote/resolve-user.ts +++ b/src/remote/resolve-user.ts @@ -10,7 +10,7 @@ import { Users } from '../models'; const logger = remoteLogger.createSubLogger('resolve-user'); -export default async (username: string, _host: string, option?: any, resync = false): Promise<User> => { +export async function resolveUser(username: string, _host: string, option?: any, resync = false): Promise<User> { const usernameLower = username.toLowerCase(); if (_host == null) { @@ -73,7 +73,7 @@ export default async (username: string, _host: string, option?: any, resync = fa logger.info(`return existing remote user: ${acctLower}`); return user; -}; +} async function resolveSelf(acctLower: string) { logger.info(`WebFinger for ${chalk.yellow(acctLower)}`); |