summaryrefslogtreecommitdiff
path: root/src/remote
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-07 23:06:07 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-07 23:06:07 +0900
commitd9780606b3f69fc7fff96245c032c2e443dc3432 (patch)
tree4df09a9e31ea23fd9620a9678f5ca763c423439e /src/remote
parentFix bug (diff)
downloadsharkey-d9780606b3f69fc7fff96245c032c2e443dc3432.tar.gz
sharkey-d9780606b3f69fc7fff96245c032c2e443dc3432.tar.bz2
sharkey-d9780606b3f69fc7fff96245c032c2e443dc3432.zip
Refactor
Diffstat (limited to 'src/remote')
-rw-r--r--src/remote/resolve-user.ts4
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)}`);