1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-25 15:46:39 +09:00

Fix resync-remote-user (#7556)

* Fix resync-remote-user

* tune
This commit is contained in:
MeiMei 2021-06-05 14:55:41 +09:00 committed by GitHub
parent 5d66bb8794
commit 441790be2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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