mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
ensure MaxAbstracts reply is the right type
to prevent panic while using *internal conn
This commit is contained in:
committed by
Dan Christian Bogos
parent
4af1cc106c
commit
8d8af20ee1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user