mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
events: fix event type string conversion
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -132,7 +132,7 @@ func getLogSearchParamsFromRequest(r *http.Request) (eventsearcher.LogEventSearc
|
|||||||
s.Protocols = getCommaSeparatedQueryParam(r, "protocols")
|
s.Protocols = getCommaSeparatedQueryParam(r, "protocols")
|
||||||
events := getCommaSeparatedQueryParam(r, "events")
|
events := getCommaSeparatedQueryParam(r, "events")
|
||||||
for _, ev := range events {
|
for _, ev := range events {
|
||||||
evType, err := strconv.ParseUint(ev, 10, 32)
|
evType, err := strconv.ParseInt(ev, 10, 32)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
s.Events = append(s.Events, int32(evType))
|
s.Events = append(s.Events, int32(evType))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user