fix pubkey in postgres
This commit is contained in:
@@ -83,7 +83,7 @@ func (b PostgresBackend) queryEventsSql(filter nostr.Filter, doCount bool) (stri
|
|||||||
for _, v := range filter.Authors {
|
for _, v := range filter.Authors {
|
||||||
params = append(params, v)
|
params = append(params, v)
|
||||||
}
|
}
|
||||||
conditions = append(conditions, ` pubkey IN (`+makePlaceHolders(len(filter.IDs))+`)`)
|
conditions = append(conditions, ` pubkey IN (`+makePlaceHolders(len(filter.Authors))+`)`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(filter.Kinds) > 0 {
|
if len(filter.Kinds) > 0 {
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ func (b SQLite3Backend) queryEventsSql(filter nostr.Filter, doCount bool) (strin
|
|||||||
for _, v := range filter.IDs {
|
for _, v := range filter.IDs {
|
||||||
params = append(params, v)
|
params = append(params, v)
|
||||||
}
|
}
|
||||||
conditions = append(conditions, ` id IN (`+makePlaceHolders(len(filter.IDs))+`)`)
|
conditions = append(conditions, `id IN (`+makePlaceHolders(len(filter.IDs))+`)`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(filter.Authors) > 0 {
|
if len(filter.Authors) > 0 {
|
||||||
@@ -83,7 +83,7 @@ func (b SQLite3Backend) queryEventsSql(filter nostr.Filter, doCount bool) (strin
|
|||||||
for _, v := range filter.Authors {
|
for _, v := range filter.Authors {
|
||||||
params = append(params, v)
|
params = append(params, v)
|
||||||
}
|
}
|
||||||
conditions = append(conditions, ` pubkey IN (`+makePlaceHolders(len(filter.Authors))+`)`)
|
conditions = append(conditions, `pubkey IN (`+makePlaceHolders(len(filter.Authors))+`)`)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(filter.Kinds) > 0 {
|
if len(filter.Kinds) > 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user