Correct matching for action trigger in case of *reset_triggers action

This commit is contained in:
TeoV
2019-04-03 13:42:02 +03:00
committed by Dan Christian Bogos
parent a6cda0bd60
commit 6b79c01287

View File

@@ -123,7 +123,7 @@ func (at *ActionTrigger) Match(a *Action) bool {
if a.Balance.Type != nil && a.Balance.GetType() != at.Balance.GetType() {
return false
}
var thresholdType bool
thresholdType := true // by default we consider that we don't have ExtraParameters
if a.ExtraParameters != "" {
t := struct {
GroupID string