mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Removed APIAccountProfileWithCache struct
This commit is contained in:
committed by
Dan Christian Bogos
parent
e6765436ab
commit
7c02a8ec14
@@ -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 {
|
||||
|
||||
@@ -88,7 +88,7 @@ func (apierSv1 *APIerSv1) GetAccountProfileIDsCount(args *utils.TenantWithOpts,
|
||||
}
|
||||
|
||||
type APIAccountProfileWithCache struct {
|
||||
*utils.APIAccountProfileWithOpts
|
||||
*utils.APIAccountProfile
|
||||
Cache *string
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user