Skip to content

Commit

Permalink
events: fix event type string conversion
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
  • Loading branch information
drakkan committed Oct 21, 2023
1 parent ba9df51 commit fc46092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/httpd/api_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func getLogSearchParamsFromRequest(r *http.Request) (eventsearcher.LogEventSearc
s.Protocols = getCommaSeparatedQueryParam(r, "protocols")
events := getCommaSeparatedQueryParam(r, "events")
for _, ev := range events {
evType, err := strconv.ParseUint(ev, 10, 32)
evType, err := strconv.ParseInt(ev, 10, 32)
if err == nil {
s.Events = append(s.Events, int32(evType))
}
Expand Down

0 comments on commit fc46092

Please sign in to comment.