Update *remove actions to support multiple balance types at once

This commit is contained in:
ionutboangiu
2024-03-12 12:25:00 -04:00
committed by Dan Christian Bogos
parent fe39eec4d9
commit 5ac08799e1
8 changed files with 111 additions and 83 deletions

View File

@@ -139,7 +139,7 @@ func (at *ActionTrigger) Match(a *Action) bool {
}
thresholdType = t.ThresholdType == "" || at.ThresholdType == t.ThresholdType
}
return thresholdType && at.Balance.CreateBalance().MatchFilter(a.Balance, false, false)
return thresholdType && at.Balance.CreateBalance().MatchFilter(a.Balance, "", false, false)
}
func (at *ActionTrigger) CreateBalance() *Balance {