Skip to content

Commit

Permalink
wax. improve mail alert for sms quota reached (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
edospadoni authored Mar 2, 2022
1 parent 624d2c5 commit 4c3d302
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions wax/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c3d302

Please sign in to comment.