mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
fix(EventsDB): type is correct, ignore type complaint
This commit is contained in:
parent
bfab84d937
commit
acbdae29ae
1 changed files with 2 additions and 0 deletions
|
|
@ -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<NPostgresSchema>, 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(' '),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue