mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 08:38:45 +05:00
Updated dispatcher matching
This commit is contained in:
committed by
Dan Christian Bogos
parent
0682251fff
commit
3ec16fb45e
@@ -692,7 +692,7 @@ func (rpS *RouteService) sortedRoutesForEvent(ctx *context.Context, tnt string,
|
||||
return
|
||||
}
|
||||
prfCount := len(rPrfs) // if the option is not present return for all profiles
|
||||
if prfCountOpt, err := args.OptAsInt64(utils.OptsRouteProfilesCount); err != nil {
|
||||
if prfCountOpt, err := args.OptAsInt64(utils.OptsRoutesProfilesCount); err != nil {
|
||||
if err != utils.ErrNotFound { // is an conversion error
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -2180,7 +2180,7 @@ func TestRoutesSortedForEventWithLimitAndOffset2(t *testing.T) {
|
||||
Tenant: "cgrates.org",
|
||||
ID: "utils.CGREvent1",
|
||||
Event: map[string]interface{}{},
|
||||
APIOpts: map[string]interface{}{utils.OptsRouteProfilesCount: 3},
|
||||
APIOpts: map[string]interface{}{utils.OptsRoutesProfilesCount: 3},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user