mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Add constant '@' and fix typo
This commit is contained in:
committed by
Dan Christian Bogos
parent
2385597155
commit
d7254ff73c
@@ -2333,7 +2333,7 @@ func dynamicRoute(_ *Account, act *Action, _ Actions, _ *FilterS, ev any,
|
||||
}
|
||||
}
|
||||
// Take only the string after @, for cases when the RouteProfileID is gotten from a switch agents event
|
||||
routeFieldParts := strings.Split(params[1], "@")
|
||||
routeFieldParts := strings.Split(params[1], utils.AtChar)
|
||||
routeProfileFound := new(RouteProfile)
|
||||
if len(routeFieldParts) > 2 {
|
||||
return fmt.Errorf("more than 1 \"@\" character for RouteProfileID: <%s>", params[1])
|
||||
|
||||
Reference in New Issue
Block a user