Removed APIAccountProfileWithCache struct

This commit is contained in:
porosnicuadrian
2021-02-12 18:03:38 +02:00
committed by Dan Christian Bogos
parent e6765436ab
commit 7c02a8ec14
3 changed files with 3 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ func (aS *AccountS) matchingAccountForEvent(tnt string, cgrEv *utils.CGREvent,
}
continue
}
if acnt == nil || acnt.Weight < qAcnt.Weight {
if acnt == nil {
acnt = qAcnt
if lked {
if lkID != utils.EmptyString {

View File

@@ -88,7 +88,7 @@ func (apierSv1 *APIerSv1) GetAccountProfileIDsCount(args *utils.TenantWithOpts,
}
type APIAccountProfileWithCache struct {
*utils.APIAccountProfileWithOpts
*utils.APIAccountProfile
Cache *string
}

View File

@@ -104,7 +104,7 @@ func MatchingItemIDsForEvent(ev utils.MapStorage, stringFldIDs, prefixFldIDs, su
// Weight returns weight of the first matching DynamicWeight
func WeightFromDynamics(dWs []*utils.DynamicWeight,
fltrS FilterS, tnt string, ev utils.DataProvider) (wg float64, err error) {
fltrS *FilterS, tnt string, ev utils.DataProvider) (wg float64, err error) {
for _, dW := range dWs {
var pass bool
if pass, err = fltrS.Pass(tnt, dW.FilterIDs, ev); err != nil {