diff --git a/broker/src/asapo_broker/database/mongodb.go b/broker/src/asapo_broker/database/mongodb.go index 227381d70bb37640eb5c4f4ca26df45849e95581..726e232812ecbeb99ad3e828c17a5653b611135a 100644 --- a/broker/src/asapo_broker/database/mongodb.go +++ b/broker/src/asapo_broker/database/mongodb.go @@ -245,7 +245,8 @@ func getIntVal(request Request, val interface{}) (int, error) { request.Logger().Debug("unexpected type %T", v) return 0, errors.New("cannot convert value to int") case int32: - result, _ = val.(int) + val, _ := val.(int32) + result = int(val) case int64: val, _ := val.(int64) result = int(val)