From 8b050e7df10ccc28a38b70f0373470566bbeede7 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Sat, 26 Oct 2024 18:53:19 -0300 Subject: [PATCH] question: isn't Kysely immutable? cc https://www.kysely.dev/docs/getting-started#querying --- src/storages/EventsDB.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storages/EventsDB.ts b/src/storages/EventsDB.ts index 591a1376..8816df97 100644 --- a/src/storages/EventsDB.ts +++ b/src/storages/EventsDB.ts @@ -327,7 +327,7 @@ class EventsDB extends NPostgres { .where('domain', 'in', [...domains]); if (filter.authors) { - query.where('pubkey', 'in', filter.authors); + query.where('pubkey', 'in', filter.authors); // isn't Kysely immutable? } const pubkeys = await query.execute().then((rows) => rows.map((row) => row.pubkey));