From 11bb48947e0801e04ada542a6134ae39cba8f252 Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Wed, 11 Jan 2023 18:29:13 +0200 Subject: [PATCH] Also look for account id inside APIOpts --- engine/thresholds.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/thresholds.go b/engine/thresholds.go index a26ffb2da..11dc1d973 100644 --- a/engine/thresholds.go +++ b/engine/thresholds.go @@ -157,6 +157,9 @@ func (t *Threshold) ProcessEvent(args *utils.CGREvent, dm *DataManager, fltrS *F } else { acnt, _ = args.FieldAsString(utils.AccountField) } + if _, has := args.APIOpts[utils.MetaAccount]; has { + acnt, _ = args.OptAsString(utils.MetaAccount) + } if acnt != utils.EmptyString { tntAcnt = utils.ConcatenatedKey(args.Tenant, acnt) }