Improved constant in ComputeResourcesIdx

This commit is contained in:
adi
2022-12-20 12:01:43 +02:00
committed by Dan Christian Bogos
parent 74d2735e3b
commit a892ae4986

View File

@@ -195,7 +195,7 @@ func ComputeResourceIndexes(dm *DataManager, tenant string, rsIDs *[]string,
} else {
// this will be on ComputeIndexesIDs that contains the old indexes from the next getter
var oldIDx map[string]utils.StringMap
if oldIDx, err = dm.GetFilterIndexes(utils.PrefixToIndexCache[utils.ResourceFilterIndexes],
if oldIDx, err = dm.GetFilterIndexes(utils.PrefixToIndexCache[utils.ResourceProfilesPrefix],
tenant, utils.EmptyString, nil); err != nil || oldIDx == nil {
rpIndexers = NewFilterIndexer(dm, utils.ResourceProfilesPrefix, tenant)
} else {