initialize accounts map on load

This commit is contained in:
Radu Ioan Fericean
2015-12-18 11:08:21 +02:00
parent a250fc668f
commit 177e2d7ebb

View File

@@ -665,7 +665,7 @@ func (tpr *TpReader) LoadAccountActionsFiltered(qriedAA *TpAccountAction) error
// action timings
if accountAction.ActionPlanId != "" {
// get old userBalanceIds
var exitingAccountIds map[string]struct{}
exitingAccountIds := make(map[string]struct{})
existingActionPlan, err := tpr.ratingStorage.GetActionPlan(accountAction.ActionPlanId, true)
if err == nil && existingActionPlan != nil {
exitingAccountIds = existingActionPlan.AccountIDs