postgresql: fix tags array matching (&&)=>(@>)

closes https://github.com/fiatjaf/eventstore/issues/16
This commit is contained in:
fiatjaf
2024-05-08 16:36:11 -03:00
parent 4c1b0497df
commit 164faeafcb

View File

@@ -119,7 +119,7 @@ func (b PostgresBackend) queryEventsSql(filter nostr.Filter, doCount bool) (stri
params = append(params, tagValue)
}
conditions = append(conditions, `tagvalues && ARRAY[`+makePlaceHolders(len(tagQuery))+`]`)
conditions = append(conditions, `tagvalues @> ARRAY[`+makePlaceHolders(len(tagQuery))+`]`)
}
if filter.Since != nil {