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,7 +1,7 @@
import { DittoDB } from '@/db/DittoDB.ts';
import { Storages } from '@/storages.ts';
// This migrates kysely internally.
const { kysely } = await DittoDB.getInstance();
const kysely = await Storages.kysely();
// Close the connection before exiting.
await kysely.destroy();