mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-27 04:17:51 -07:00
parent
b2dfd27588
commit
dd75f517c2
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
||||||
|
import { initDb } from '@/db/postgre';
|
||||||
import parseAcct from '@/misc/acct/parse';
|
import parseAcct from '@/misc/acct/parse';
|
||||||
import { resolveUser } from '../remote/resolve-user';
|
|
||||||
|
|
||||||
async function main(acct: string): Promise<any> {
|
async function main(acct: string): Promise<any> {
|
||||||
|
await initDb();
|
||||||
|
const { resolveUser } = await import('../remote/resolve-user');
|
||||||
|
|
||||||
const { username, host } = parseAcct(acct);
|
const { username, host } = parseAcct(acct);
|
||||||
await resolveUser(username, host, {}, true);
|
await resolveUser(username, host, {}, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue