fix GetAccounts with mongo

This commit is contained in:
Radu Ioan Fericean
2016-03-25 15:32:21 +02:00
parent 393d893ef7
commit 7721a99edd
9 changed files with 90 additions and 32 deletions

View File

@@ -433,7 +433,7 @@ func (tpr *TpReader) LoadLCRs() (err error) {
}
}
if !found && tpr.ratingStorage != nil {
if keys, err := tpr.ratingStorage.GetKeysForPrefix(utils.RATING_PROFILE_PREFIX + ratingProfileSearchKey); err != nil {
if keys, err := tpr.ratingStorage.GetKeysForPrefix(utils.RATING_PROFILE_PREFIX+ratingProfileSearchKey, true); err != nil {
return fmt.Errorf("[LCR] error querying ratingDb %s", err.Error())
} else if len(keys) != 0 {
found = true