Rework DittoDB to return an object

This commit is contained in:
Alex Gleason
2024-08-11 19:02:27 -05:00
parent f830271ce2
commit 552de01a17
13 changed files with 86 additions and 74 deletions

View File

@@ -20,7 +20,7 @@ export const signerMiddleware: AppMiddleware = async (c, next) => {
if (bech32.startsWith('token1')) {
try {
const kysely = await DittoDB.getInstance();
const { kysely } = await DittoDB.getInstance();
const { user_pubkey, server_seckey, relays } = await kysely
.selectFrom('nip46_tokens')