From 441790be2dfa7834a32255be56600866fd730c50 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sat, 5 Jun 2021 14:55:41 +0900 Subject: [PATCH] Fix resync-remote-user (#7556) * Fix resync-remote-user * tune --- src/tools/resync-remote-user.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tools/resync-remote-user.ts b/src/tools/resync-remote-user.ts index 9897cba9f8..d9685ee4b7 100644 --- a/src/tools/resync-remote-user.ts +++ b/src/tools/resync-remote-user.ts @@ -1,7 +1,10 @@ +import { initDb } from '@/db/postgre'; import parseAcct from '@/misc/acct/parse'; -import { resolveUser } from '../remote/resolve-user'; async function main(acct: string): Promise { + await initDb(); + const { resolveUser } = await import('../remote/resolve-user'); + const { username, host } = parseAcct(acct); await resolveUser(username, host, {}, true); }