From acbdae29ae71ee3f569eba7da9cd29d35f0244c4 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Mon, 7 Oct 2024 17:54:41 -0300 Subject: [PATCH] fix(EventsDB): type is correct, ignore type complaint --- src/storages/EventsDB.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/storages/EventsDB.ts b/src/storages/EventsDB.ts index dfff6394..957e996c 100644 --- a/src/storages/EventsDB.ts +++ b/src/storages/EventsDB.ts @@ -146,10 +146,12 @@ class EventsDB extends NPostgres { } } + // @ts-ignore The type is correct, but NPostgres doesn't realize it. I don't think it's solvable without modifying NPostgres again, which I don't think is worth it for this. protected override getFilterQuery(trx: Kysely, filter: NostrFilter) { if (filter.search) { const tokens = NIP50.parseInput(filter.search); + // @ts-ignore The type is correct, but NPostgres doesn't realize it. I don't think it's solvable without modifying NPostgres again, which I don't think is worth it for this. let query = super.getFilterQuery(trx, { ...filter, search: tokens.filter((t) => typeof t === 'string').join(' '),