mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Revert to supporting *asm for ThresholdS acc publish
This commit is contained in:
committed by
Dan Christian Bogos
parent
619a1efa50
commit
e987139e9c
@@ -120,7 +120,7 @@ func TestRadiusCoADisconnect(t *testing.T) {
|
||||
ID: "THD_ACNT_1001",
|
||||
FilterIDs: []string{
|
||||
"*string:~*opts.*eventType:AccountUpdate",
|
||||
"*string:~*req.AccountSummary.ID:1001",
|
||||
"*string:~*asm.ID:1001",
|
||||
},
|
||||
//MinHits: 1,
|
||||
MaxHits: 1,
|
||||
|
||||
@@ -1084,9 +1084,7 @@ func (acc *Account) Publish(initBal map[string]float64) {
|
||||
Tenant: acntSummary.Tenant,
|
||||
ID: utils.GenUUID(),
|
||||
Time: utils.TimePointer(time.Now()),
|
||||
Event: map[string]any{
|
||||
utils.AccountSummary: acntSummary,
|
||||
},
|
||||
Event: acntSummary.AsMapInterface(),
|
||||
APIOpts: map[string]any{
|
||||
utils.MetaEventType: utils.AccountUpdate,
|
||||
},
|
||||
|
||||
@@ -61,7 +61,6 @@ func TestDynamicDpFieldAsInterface(t *testing.T) {
|
||||
} else if _, err := dDp.fieldAsInterface([]string{utils.MetaAsm, "+402552663", "val3"}); err == nil || err != utils.ErrNotFound {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func TestDDPFieldAsInterface(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user