Reset the error in case that the account isn't found

This commit is contained in:
TeoV
2019-05-24 12:19:01 +03:00
committed by Dan Christian Bogos
parent dac7dab1ee
commit 7fdad46cbb

View File

@@ -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,