mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Fix stats:recompute script
This commit is contained in:
parent
1ae9da5793
commit
979f2cffb4
1 changed files with 3 additions and 1 deletions
|
|
@ -9,6 +9,8 @@ const conf = new DittoConf(Deno.env);
|
||||||
const db = new DittoPolyPg(conf.databaseUrl);
|
const db = new DittoPolyPg(conf.databaseUrl);
|
||||||
const relay = new DittoPgStore({ db, pubkey: await conf.signer.getPublicKey() });
|
const relay = new DittoPgStore({ db, pubkey: await conf.signer.getPublicKey() });
|
||||||
|
|
||||||
|
const { kysely } = db;
|
||||||
|
|
||||||
let pubkey: string;
|
let pubkey: string;
|
||||||
try {
|
try {
|
||||||
const result = nip19.decode(Deno.args[0]);
|
const result = nip19.decode(Deno.args[0]);
|
||||||
|
|
@ -22,4 +24,4 @@ try {
|
||||||
Deno.exit(1);
|
Deno.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
await refreshAuthorStats({ pubkey, kysely: db.kysely, store: relay });
|
await refreshAuthorStats({ pubkey, kysely, relay });
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue