ensure MaxAbstracts reply is the right type

to prevent panic while using *internal conn
This commit is contained in:
ionutboangiu
2025-05-13 18:18:03 +03:00
committed by Dan Christian Bogos
parent 4af1cc106c
commit 8d8af20ee1

View File

@@ -1423,7 +1423,7 @@ func (sS *SessionS) accounSMaxAbstracts(ctx *context.Context, cgrEvs map[string]
}
maxAbstracts = make(map[string]*utils.Decimal)
for runID, cgrEv := range cgrEvs {
acntCost := new(utils.EventCharges)
var acntCost utils.EventCharges
if err = sS.connMgr.Call(ctx, sS.cfg.SessionSCfg().AccountSConns,
utils.AccountSv1MaxAbstracts, cgrEv, &acntCost); err != nil {
return