mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Also look for account id inside APIOpts
This commit is contained in:
committed by
Dan Christian Bogos
parent
85fe98f5b2
commit
11bb48947e
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user