parent
b4ebf254c8
commit
d9775c147f
5 changed files with 14 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue