diff --git a/src/tools/resync-remote-user.ts b/src/tools/resync-remote-user.ts index c9d1ed588c..f211ae42cf 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); }