Skip to content

Commit

Permalink
fix: bug where email limit was being used instead of sms limit
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewleith committed Sep 18, 2023
1 parent d72dbdd commit 141bc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/notifications/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def warn_about_daily_message_limit(service: Service, messages_sent):

def send_near_sms_limit_email(service: Service, sms_sent):
limit_reset_time_et = get_limit_reset_time_et()
sms_remaining = service.message_limit - sms_sent
sms_remaining = service.sms_daily_limit - sms_sent
send_notification_to_service_users(
service_id=service.id,
template_id=current_app.config["NEAR_DAILY_SMS_LIMIT_TEMPLATE_ID"],
Expand Down

0 comments on commit 141bc17

Please sign in to comment.