mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
added in ThresholdProfile.Clone() to copy EeIDs
This commit is contained in:
committed by
Dan Christian Bogos
parent
f46ea874ba
commit
5894e0d7f3
@@ -83,6 +83,10 @@ func (tp *ThresholdProfile) Clone() *ThresholdProfile {
|
||||
if tp.ActivationInterval != nil {
|
||||
clone.ActivationInterval = tp.ActivationInterval.Clone()
|
||||
}
|
||||
if tp.EeIDs != nil {
|
||||
clone.EeIDs = make([]string, len(tp.EeIDs))
|
||||
copy(clone.EeIDs, tp.EeIDs)
|
||||
}
|
||||
return clone
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user