mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 17:18:44 +05:00
fix GetAccounts with mongo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user