fix for removing account from action plan

This commit is contained in:
Radu Ioan Fericean
2016-01-30 18:45:54 +02:00
parent aa43ed7ca9
commit d09ae04f2a
10 changed files with 120 additions and 64 deletions

View File

@@ -760,7 +760,7 @@ func (tpr *TpReader) LoadAccountActionsFiltered(qriedAA *TpAccountAction) error
}
}
// write action plan
err = tpr.ratingStorage.SetActionPlan(accountAction.ActionPlanId, actionPlan)
err = tpr.ratingStorage.SetActionPlan(accountAction.ActionPlanId, actionPlan, false)
if err != nil {
return errors.New(err.Error() + " (SetActionPlan): " + accountAction.ActionPlanId)
}
@@ -1399,7 +1399,7 @@ func (tpr *TpReader) WriteToDatabase(flush, verbose bool) (err error) {
}
}
}
err = tpr.ratingStorage.SetActionPlan(k, ap)
err = tpr.ratingStorage.SetActionPlan(k, ap, false)
if err != nil {
return err
}