blob: 83d71ff3034033fbf1cf7fcfab2f403a3d8ed4d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import { updateQuestion } from '../remote/activitypub/models/question';
async function main(uri: string): Promise<any> {
return await updateQuestion(uri);
}
const args = process.argv.slice(2);
const uri = args[0];
main(uri).then(result => {
console.log(`Done: ${result}`);
}).catch(e => {
console.warn(e);
});
|