mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 23:28:44 +05:00
fix init counters
This commit is contained in:
@@ -563,7 +563,7 @@ func (acc *Account) countUnits(amount float64, kind string, cc *CallCost, b *Bal
|
||||
|
||||
// Create counters for all triggered actions
|
||||
func (acc *Account) InitCounters() {
|
||||
acc.UnitCounters = make(UnitCounters, 0)
|
||||
acc.UnitCounters = nil
|
||||
ucTempMap := make(map[string]*UnitCounter)
|
||||
for _, at := range acc.ActionTriggers {
|
||||
if !strings.Contains(at.ThresholdType, "counter") {
|
||||
|
||||
Reference in New Issue
Block a user