fix: toolsが動かないのを修正 (#8008)

* Move tools

* Fix DB
This commit is contained in:
MeiMei
2021-11-26 13:41:49 +09:00
committed by GitHub
parent b4ebf254c8
commit d9775c147f
5 changed files with 14 additions and 9 deletions

View File

@@ -1,6 +1,9 @@
import { updateQuestion } from '@/remote/activitypub/models/question';
import { initDb } from '@/db/postgre';
async function main(uri: string): Promise<any> {
await initDb();
const { updateQuestion } = await import('@/remote/activitypub/models/question');
return await updateQuestion(uri);
}