events: fix event type string conversion

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2023-10-21 11:25:39 +02:00
parent ba9df51b2e
commit fc460922ad
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -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))
}