mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-15 21:29:52 +05:00
Include DestinationIDs and Factor when cloning balances
This fixes an issue where, if data_db is of type *internal, the Factor value is lost on GetAccount
This commit is contained in:
committed by
Dan Christian Bogos
parent
823b1ac37a
commit
050af6032c
@@ -178,6 +178,8 @@ func (b *Balance) Clone() *Balance {
|
||||
Timings: b.Timings, // should not be a problem with aliasing
|
||||
Blocker: b.Blocker,
|
||||
Disabled: b.Disabled,
|
||||
DestinationIDs: b.DestinationIDs,
|
||||
Factor: b.Factor,
|
||||
dirty: b.dirty,
|
||||
}
|
||||
if b.DestinationIDs != nil {
|
||||
|
||||
Reference in New Issue
Block a user