diff --git a/wax/utils/utils.go b/wax/utils/utils.go index 98ca72bc1..c2a0119dd 100644 --- a/wax/utils/utils.go +++ b/wax/utils/utils.go @@ -471,12 +471,16 @@ Logout Link: http://logout`) } return resp.StatusCode + } else { + resellerAccount := GetAccountByAccountId(hotspot.AccountId) + SendSmsHotspotThresholdAlert(resellerAccount, hotspot, 0) } - } + } else { - if configuration.Config.Endpoints.Sms.SendQuotaAlert { - resellerAccount := GetAccountByAccountId(hotspot.AccountId) - SendSmsQuotaLimitAlert(resellerAccount) + if configuration.Config.Endpoints.Sms.SendQuotaAlert { + resellerAccount := GetAccountByAccountId(hotspot.AccountId) + SendSmsQuotaLimitAlert(resellerAccount) + } } return 500