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); }