mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Balance DestinationId now take multiple destinations
This commit is contained in:
@@ -79,7 +79,7 @@ func (uc *UnitsCounter) addUnits(amount float64, prefix string) {
|
||||
for _, p := range utils.SplitPrefix(prefix, MIN_PREFIX_MATCH) {
|
||||
if x, err := cache2go.GetCached(DESTINATION_PREFIX + p); err == nil {
|
||||
destIds := x.(map[interface{}]struct{})
|
||||
if _, found := destIds[mb.DestinationId]; found {
|
||||
if _, found := destIds[mb.DestinationIds]; found {
|
||||
mb.Value += amount
|
||||
counted = true
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user