mirror of
https://github.com/aljazceru/khatru.git
synced 2026-01-05 14:34:25 +01:00
fix filter.Kind pointer type mismatch.
This commit is contained in:
2
query.go
2
query.go
@@ -24,7 +24,7 @@ func queryEvents(filter *filter.EventFilter) (events []event.Event, err error) {
|
||||
params = append(params, filter.Author)
|
||||
}
|
||||
|
||||
if filter.Kind != 0 {
|
||||
if filter.Kind != nil && *filter.Kind != 0 {
|
||||
conditions = append(conditions, "kind = ?")
|
||||
params = append(params, filter.Kind)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user