feat: added support for checking any value against "null" in filter string to see if it was set

This commit is contained in:
benimautner 2024-04-07 19:00:13 +02:00
parent 95a9c06921
commit ce83dd7649

View File

@ -244,6 +244,11 @@ func getValueForField(field reflect.StructField, rawValue string, loc *time.Loca
loc = config.GetTimeZone()
}
if rawValue == "null" {
value = nil
return
}
switch field.Type.Kind() {
case reflect.Int64:
value, err = strconv.ParseInt(rawValue, 10, 64)