postgresql: fix tags array matching (&&)=>(@>)
closes https://github.com/fiatjaf/eventstore/issues/16
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user