From a3e12e917b2c7c978cd11886eebd4ba112e2053a Mon Sep 17 00:00:00 2001 From: porosnicuadrian Date: Fri, 11 Jun 2021 18:02:47 +0300 Subject: [PATCH] Removed subsystems field from compute indexes args --- apis/filter_indexes.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apis/filter_indexes.go b/apis/filter_indexes.go index 5801a6355..1d309d252 100644 --- a/apis/filter_indexes.go +++ b/apis/filter_indexes.go @@ -330,7 +330,7 @@ func (adms *AdminSv1) ComputeFilterIndexes(cntxt *context.Context, args *utils.A //AccountFilter Indexes if args.AccountS { cacheIDs[utils.AccountsFilterIndexIDs] = []string{utils.MetaAny} - if indexes, err = engine.ComputeIndexes(cntxt, adms.dm, tnt, args.Subsystem, utils.CacheAccountsFilterIndexes, + if indexes, err = engine.ComputeIndexes(cntxt, adms.dm, tnt, utils.EmptyString, utils.CacheAccountsFilterIndexes, nil, transactionID, func(tnt, id, ctx string) (*[]string, error) { acnts, e := adms.dm.GetAccount(cntxt, tnt, id) if e != nil { @@ -349,7 +349,7 @@ func (adms *AdminSv1) ComputeFilterIndexes(cntxt *context.Context, args *utils.A //ActionFilter Indexes if args.ActionS { cacheIDs[utils.ActionProfilesFilterIndexIDs] = []string{utils.MetaAny} - if indexes, err = engine.ComputeIndexes(cntxt, adms.dm, tnt, args.Subsystem, utils.CacheActionProfilesFilterIndexes, + if indexes, err = engine.ComputeIndexes(cntxt, adms.dm, tnt, utils.EmptyString, utils.CacheActionProfilesFilterIndexes, nil, transactionID, func(tnt, id, ctx string) (*[]string, error) { act, e := adms.dm.GetActionProfile(cntxt, tnt, id, true, false, utils.NonTransactional) if e != nil { @@ -368,7 +368,7 @@ func (adms *AdminSv1) ComputeFilterIndexes(cntxt *context.Context, args *utils.A var ratePrf []string if args.RateS { cacheIDs[utils.RateProfilesFilterIndexIDs] = []string{utils.MetaAny} - if indexes, err = engine.ComputeIndexes(cntxt, adms.dm, tnt, args.Subsystem, utils.CacheRateProfilesFilterIndexes, + if indexes, err = engine.ComputeIndexes(cntxt, adms.dm, tnt, utils.EmptyString, utils.CacheRateProfilesFilterIndexes, nil, transactionID, func(tnt, id, ctx string) (*[]string, error) { rtPrf, e := adms.dm.GetRateProfile(cntxt, tnt, id, true, false, utils.NonTransactional) if e != nil { @@ -600,7 +600,7 @@ func (adms *AdminSv1) ComputeFilterIndexIDs(cntxt *context.Context, args *utils. cacheIDs[utils.ChargerFilterIndexIDs] = indexes.AsSlice() } //AccountIndexes - if indexes, err = engine.ComputeIndexes(cntxt, adms.dm, tnt, args.Subsystem, utils.CacheAccountsFilterIndexes, + if indexes, err = engine.ComputeIndexes(cntxt, adms.dm, tnt, utils.EmptyString, utils.CacheAccountsFilterIndexes, &args.AccountIDs, transactionID, func(tnt, id, ctx string) (*[]string, error) { acc, e := adms.dm.GetAccount(cntxt, tnt, id) if e != nil { @@ -618,7 +618,7 @@ func (adms *AdminSv1) ComputeFilterIndexIDs(cntxt *context.Context, args *utils. cacheIDs[utils.CacheAccountsFilterIndexes] = indexes.AsSlice() } //ActionProfile Indexes - if indexes, err = engine.ComputeIndexes(cntxt, adms.dm, tnt, args.Subsystem, utils.CacheActionProfilesFilterIndexes, + if indexes, err = engine.ComputeIndexes(cntxt, adms.dm, tnt, utils.EmptyString, utils.CacheActionProfilesFilterIndexes, &args.ActionProfileIDs, transactionID, func(tnt, id, ctx string) (*[]string, error) { act, e := adms.dm.GetActionProfile(cntxt, tnt, id, true, false, utils.NonTransactional) if e != nil { @@ -636,7 +636,7 @@ func (adms *AdminSv1) ComputeFilterIndexIDs(cntxt *context.Context, args *utils. cacheIDs[utils.ActionProfilesFilterIndexIDs] = indexes.AsSlice() } //RateProfile Indexes - if _, err = engine.ComputeIndexes(cntxt, adms.dm, tnt, args.Subsystem, utils.CacheRateProfilesFilterIndexes, + if _, err = engine.ComputeIndexes(cntxt, adms.dm, tnt, utils.EmptyString, utils.CacheRateProfilesFilterIndexes, &args.RateProfileIDs, transactionID, func(tnt, id, ctx string) (*[]string, error) { rpr, e := adms.dm.GetRateProfile(cntxt, tnt, id, true, false, utils.NonTransactional) if e != nil {