Also look for account id inside APIOpts

This commit is contained in:
ionutboangiu
2023-01-11 18:29:13 +02:00
committed by Dan Christian Bogos
parent 85fe98f5b2
commit 11bb48947e

View File

@@ -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)
}