Fix ApierV2.GetActions querying wrong database

This commit is contained in:
DanB
2017-01-02 14:41:02 +01:00
parent 73014daa0c
commit 54500e38dd

View File

@@ -231,7 +231,7 @@ func (self *ApierV2) GetActions(attr AttrGetActions, reply *map[string]engine.Ac
var actionKeys []string
var err error
if len(attr.ActionIDs) == 0 {
if actionKeys, err = self.AccountDb.GetKeysForPrefix(utils.ACTION_PREFIX); err != nil {
if actionKeys, err = self.RatingDb.GetKeysForPrefix(utils.ACTION_PREFIX); err != nil {
return err
}
} else {