mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Reset the error in case that the account isn't found
This commit is contained in:
committed by
Dan Christian Bogos
parent
dac7dab1ee
commit
7fdad46cbb
@@ -355,6 +355,8 @@ func (at *ActionTiming) Execute(successActions, failedActions chan *Action) (err
|
||||
return 0, nil
|
||||
}, config.CgrConfig().GeneralCfg().LockingTimeout, accID)
|
||||
}
|
||||
//reset the error in case that the account is not found
|
||||
err = nil
|
||||
if len(at.accountIDs) == 0 { // action timing executing without accounts
|
||||
for _, a := range aac {
|
||||
if expDate, parseErr := utils.ParseTimeDetectLayout(a.ExpirationString,
|
||||
|
||||
Reference in New Issue
Block a user