mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
mongo map key cleanup no longer needed
This commit is contained in:
@@ -1158,7 +1158,6 @@ func (ms *MongoStorage) GetAllActionPlans() (ats map[string]*ActionPlan, err err
|
||||
ats = make(map[string]*ActionPlan, len(apls))
|
||||
for key, value := range apls {
|
||||
apl := value.(*ActionPlan)
|
||||
apl.AccountIDs = utils.YesDots(apl.AccountIDs)
|
||||
ats[key] = apl
|
||||
}
|
||||
|
||||
|
||||
@@ -144,6 +144,7 @@ func (sm StringMap) GetOne() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
/*
|
||||
func NoDots(m map[string]struct{}) map[string]struct{} {
|
||||
return MapKeysReplace(m, ".", ".")
|
||||
}
|
||||
@@ -160,3 +161,4 @@ func MapKeysReplace(m map[string]struct{}, old, new string) map[string]struct{}
|
||||
}
|
||||
return m
|
||||
}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user