Fix *remove_account action for recaching AccountActionPlan index

This commit is contained in:
DanB
2017-02-09 20:37:13 +01:00
parent 205c8fbb22
commit 29d09ed57d

View File

@@ -590,7 +590,7 @@ func removeAccountAction(ub *Account, sq *StatsQueueTriggered, a *Action, acs Ac
if err = ratingStorage.RemAccountActionPlans(accID, nil); err != nil {
return 0, err
}
if err = ratingStorage.CacheDataFromDB(utils.AccountActionPlansPrefix, []string{accID}, true); err != nil {
if err = ratingStorage.CacheDataFromDB(utils.AccountActionPlansPrefix, []string{accID}, true); err != nil && err != utils.ErrNotFound {
return 0, err
}
return 0, nil