mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Applied changes from the last commit
This commit is contained in:
committed by
Dan Christian Bogos
parent
ebf9ffe968
commit
e2db68d966
@@ -71,14 +71,14 @@ func (alS *AttributeSCfg) loadFromJsonCfg(jsnCfg *AttributeSJsonCfg) (err error)
|
||||
return
|
||||
}
|
||||
|
||||
func (alS *AttributeSCfg) AsMapInterface() map[string]interface{} {
|
||||
initialMP := map[string]interface{}{
|
||||
utils.EnabledCfg: alS.Enabled,
|
||||
utils.IndexedSelectsCfg: alS.IndexedSelects,
|
||||
utils.ProcessRunsCfg: alS.ProcessRuns,
|
||||
utils.NestedFieldsCfg: alS.NestedFields,
|
||||
func (alS *AttributeSCfg) AsMapInterface() (initialMP map[string]interface{}) {
|
||||
initialMP = map[string]interface{}{
|
||||
utils.EnabledCfg: alS.Enabled,
|
||||
utils.IndexedSelectsCfg: alS.IndexedSelects,
|
||||
utils.ProcessRunsCfg: alS.ProcessRuns,
|
||||
utils.NestedFieldsCfg: alS.NestedFields,
|
||||
}
|
||||
if alS.StringIndexedFields != nil {
|
||||
if alS.StringIndexedFields != nil {
|
||||
stringIndexedFields := make([]string, len(*alS.StringIndexedFields))
|
||||
for i, item := range *alS.StringIndexedFields {
|
||||
stringIndexedFields[i] = item
|
||||
@@ -99,5 +99,5 @@ func (alS *AttributeSCfg) AsMapInterface() map[string]interface{} {
|
||||
}
|
||||
initialMP[utils.SuffixIndexedFieldsCfg] = suffixIndexedFields
|
||||
}
|
||||
return initialMP
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user