From 979f2cffb487a429515d55e4739a4f99a0fff6f5 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 22 Feb 2025 21:30:57 -0600 Subject: [PATCH] Fix stats:recompute script --- scripts/stats-recompute.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/stats-recompute.ts b/scripts/stats-recompute.ts index c17e9047..16614e45 100644 --- a/scripts/stats-recompute.ts +++ b/scripts/stats-recompute.ts @@ -9,6 +9,8 @@ const conf = new DittoConf(Deno.env); const db = new DittoPolyPg(conf.databaseUrl); const relay = new DittoPgStore({ db, pubkey: await conf.signer.getPublicKey() }); +const { kysely } = db; + let pubkey: string; try { const result = nip19.decode(Deno.args[0]); @@ -22,4 +24,4 @@ try { Deno.exit(1); } -await refreshAuthorStats({ pubkey, kysely: db.kysely, store: relay }); +await refreshAuthorStats({ pubkey, kysely, relay });