mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 22:58:44 +05:00
Rename *rsr_fields to *rsr
This commit is contained in:
committed by
Dan Christian Bogos
parent
8541335d39
commit
bd9e262d76
@@ -1137,7 +1137,7 @@ func testMigratorThreshold(t *testing.T) {
|
||||
Executed: false,
|
||||
LastExecutionTime: time.Now(),
|
||||
}
|
||||
x, err := engine.NewRequestFilter(engine.MetaRSRFields, "Directions", threshold.Balance.Directions.Slice())
|
||||
x, err := engine.NewRequestFilter(engine.MetaRSR, "Directions", threshold.Balance.Directions.Slice())
|
||||
if err != nil {
|
||||
t.Error("Error when creating new NewRequestFilter", err.Error())
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ func (v2ATR v2ActionTrigger) AsThreshold() (thp *engine.ThresholdProfile, th *en
|
||||
var filters []*engine.RequestFilter
|
||||
if v2ATR.Balance.ID != nil && *v2ATR.Balance.ID != "" {
|
||||
if v2ATR.Balance.Directions != nil {
|
||||
x, err := engine.NewRequestFilter(engine.MetaRSRFields, "Directions", v2ATR.Balance.Directions.Slice())
|
||||
x, err := engine.NewRequestFilter(engine.MetaRSR, "Directions", v2ATR.Balance.Directions.Slice())
|
||||
if err != nil {
|
||||
return nil, nil, nil, err
|
||||
}
|
||||
@@ -289,7 +289,7 @@ func AsThreshold2(v2ATR engine.ActionTrigger) (thp *engine.ThresholdProfile, th
|
||||
var filters []*engine.RequestFilter
|
||||
if v2ATR.Balance.ID != nil && *v2ATR.Balance.ID != "" {
|
||||
if v2ATR.Balance.Directions != nil {
|
||||
x, err := engine.NewRequestFilter(engine.MetaRSRFields, "Directions", v2ATR.Balance.Directions.Slice())
|
||||
x, err := engine.NewRequestFilter(engine.MetaRSR, "Directions", v2ATR.Balance.Directions.Slice())
|
||||
if err != nil {
|
||||
return nil, nil, nil, err
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ func Testv2ActionTriggerAsThreshold(t *testing.T) {
|
||||
Executed: false,
|
||||
LastExecutionTime: time.Now(),
|
||||
}
|
||||
x, _ := engine.NewRequestFilter(engine.MetaRSRFields, "Directions", v2ATR.Balance.Directions.Slice())
|
||||
x, _ := engine.NewRequestFilter(engine.MetaRSR, "Directions", v2ATR.Balance.Directions.Slice())
|
||||
filters = append(filters, x)
|
||||
x, _ = engine.NewRequestFilter(engine.MetaDestinations, "DestinationIDs", v2ATR.Balance.DestinationIDs.Slice())
|
||||
filters = append(filters, x)
|
||||
|
||||
Reference in New Issue
Block a user