DittoDB.getInstance() -> Storages.kysely()

This commit is contained in:
Alex Gleason
2024-09-11 13:23:06 -05:00
parent d2fb3fd253
commit ebc0250d81
12 changed files with 35 additions and 37 deletions

View File

@@ -1,6 +1,5 @@
import { nip19 } from 'nostr-tools';
import { DittoDB } from '@/db/DittoDB.ts';
import { Storages } from '@/storages.ts';
import { refreshAuthorStats } from '@/utils/stats.ts';
@@ -18,6 +17,6 @@ try {
}
const store = await Storages.db();
const { kysely } = await DittoDB.getInstance();
const kysely = await Storages.kysely();
await refreshAuthorStats({ pubkey, kysely, store });