mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 06:09:53 +05:00
added Executed param to SetAccountActionTriggers
This commit is contained in:
@@ -182,6 +182,7 @@ type AttrSetAccountActionTriggers struct {
|
||||
ThresholdType *string
|
||||
ThresholdValue *float64
|
||||
Recurrent *bool
|
||||
Executed *bool
|
||||
MinSleep *string
|
||||
ExpirationDate *string
|
||||
ActivationDate *string
|
||||
@@ -227,6 +228,9 @@ func (self *ApierV1) SetAccountActionTriggers(attr AttrSetAccountActionTriggers,
|
||||
if attr.Recurrent != nil {
|
||||
at.Recurrent = *attr.Recurrent
|
||||
}
|
||||
if attr.Executed != nil {
|
||||
at.Executed = *attr.Executed
|
||||
}
|
||||
if attr.MinSleep != nil {
|
||||
minSleep, err := utils.ParseDurationWithSecs(*attr.MinSleep)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user