mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 14:19:54 +05:00
fix get all eaction plans keys
This commit is contained in:
@@ -1002,7 +1002,7 @@ func (ms *MapStorage) GetAllActionPlans() (ats map[string]*ActionPlan, err error
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ats[key] = ap
|
||||
ats[key[len(utils.ACTION_PLAN_PREFIX):]] = ap
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
@@ -1471,7 +1471,7 @@ func (ms *MongoStorage) GetAllActionPlans() (ats map[string]*ActionPlan, err err
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ats[key] = ap
|
||||
ats[key[len(utils.ACTION_PLAN_PREFIX):]] = ap
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
@@ -1053,7 +1053,7 @@ func (rs *RedisStorage) GetAllActionPlans() (ats map[string]*ActionPlan, err err
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ats[key] = ap
|
||||
ats[key[len(utils.ACTION_PLAN_PREFIX):]] = ap
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user