Refactor balance's Factor field name with its plural form

Stored balances previous to this commit, that had a non-nil Factors map, will
now have Factors nil due to field name mismatch.
This commit is contained in:
ionutboangiu
2024-04-01 18:05:56 +03:00
committed by Dan Christian Bogos
parent 45066b2d2f
commit bd4aa99458
17 changed files with 100 additions and 101 deletions

View File

@@ -1263,7 +1263,7 @@ func resetAccountCDR(ub *Account, action *Action, acts Actions, fltrS *FilterS,
Value: &utils.ValueFormula{Static: bsum.Value},
Weight: &bsum.Weight,
Disabled: &bsum.Disabled,
Factor: &bsum.Factors,
Factors: &bsum.Factors,
},
}, fltrS); err != nil {
utils.Logger.Warning(fmt.Sprintf("<%s> Error %s setting balance %s for account: %s", utils.Actions, err, bsum.UUID, account))