diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2021-06-05 14:55:41 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-05 14:55:41 +0900 |
| commit | 441790be2dfa7834a32255be56600866fd730c50 (patch) | |
| tree | d60ae911c0f588be19a4d798fd7417c5b344e2ee /src | |
| parent | ランダムにテストがコケるのを修正 (#7553) (diff) | |
| download | sharkey-441790be2dfa7834a32255be56600866fd730c50.tar.gz sharkey-441790be2dfa7834a32255be56600866fd730c50.tar.bz2 sharkey-441790be2dfa7834a32255be56600866fd730c50.zip | |
Fix resync-remote-user (#7556)
* Fix resync-remote-user
* tune
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/resync-remote-user.ts | 5 |
1 files changed, 4 insertions, 1 deletions
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<any> { + await initDb(); + const { resolveUser } = await import('../remote/resolve-user'); + const { username, host } = parseAcct(acct); await resolveUser(username, host, {}, true); } |