fix for not correctly detecting that warnings are already applied (#685)

This commit is contained in:
Michael Quigley 2024-06-27 13:09:28 -04:00
parent ce134180c7
commit ee0627b7a5
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -443,7 +443,7 @@ func (a *Agent) isBandwidthClassLimitedForAccount(acctId int, bwc store.Bandwidt
if err != nil {
return nil, err
}
if je.Action == store.LimitLimitAction {
if je.Action == bwc.GetLimitAction() {
logrus.Debugf("account '#%d' over bandwidth for global bandwidth class '%v'", acctId, bwc)
return je, nil
}
@ -456,7 +456,7 @@ func (a *Agent) isBandwidthClassLimitedForAccount(acctId int, bwc store.Bandwidt
if err != nil {
return nil, err
}
if je.Action == store.LimitLimitAction {
if je.Action == bwc.GetLimitAction() {
logrus.Debugf("account '#%d' over bandwidth for limit class '%v'", acctId, bwc)
return je, nil
}