mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 20:59:53 +05:00
only remove one account from actionplan (per API call)
This commit is contained in:
@@ -333,6 +333,8 @@ func RemActionTiming(ats ActionPlan, actionTimingId, balanceId string) ActionPla
|
||||
} else {
|
||||
at.AccountIds[iBlnc], at.AccountIds = at.AccountIds[len(at.AccountIds)-1], at.AccountIds[:len(at.AccountIds)-1]
|
||||
}
|
||||
// only remove the first one matching
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user