Remove SQLite support

This commit is contained in:
Alex Gleason
2024-09-11 11:08:33 -05:00
parent f76d0af16d
commit dc8d09a9da
28 changed files with 156 additions and 568 deletions

View File

@@ -82,7 +82,7 @@ const createTokenController: AppController = async (c) => {
async function getToken(
{ pubkey, secret, relays = [] }: { pubkey: string; secret?: string; relays?: string[] },
): Promise<`token1${string}`> {
const { kysely } = await DittoDB.getInstance();
const kysely = await DittoDB.getInstance();
const token = generateToken();
const serverSeckey = generateSecretKey();

View File

@@ -578,7 +578,7 @@ const zappedByController: AppController = async (c) => {
const id = c.req.param('id');
const params = c.get('listPagination');
const store = await Storages.db();
const { kysely } = await DittoDB.getInstance();
const kysely = await DittoDB.getInstance();
const zaps = await kysely.selectFrom('event_zaps')
.selectAll()

View File

@@ -222,7 +222,7 @@ async function topicToFilter(
async function getTokenPubkey(token: string): Promise<string | undefined> {
if (token.startsWith('token1')) {
const { kysely } = await DittoDB.getInstance();
const kysely = await DittoDB.getInstance();
const { user_pubkey } = await kysely
.selectFrom('nip46_tokens')