question: isn't Kysely immutable?

cc https://www.kysely.dev/docs/getting-started#querying
This commit is contained in:
P. Reis 2024-10-26 18:53:19 -03:00
parent bbd692c58f
commit 8b050e7df1

View file

@ -327,7 +327,7 @@ class EventsDB extends NPostgres {
.where('domain', 'in', [...domains]); .where('domain', 'in', [...domains]);
if (filter.authors) { 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)); const pubkeys = await query.execute().then((rows) => rows.map((row) => row.pubkey));