mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 09:51:11 -05:00
Up threshold for sms to telephone numbers
We were just ignoring the errors and our users were not fixing things. Given that 500 texts cost approx £8 it's not the end of the world. In the long run we may decide to just stop letting people try and send messages to TV numbers but this is a quick fix to stop emails coming in which we ignore.
This commit is contained in:
@@ -525,7 +525,7 @@ def dao_fetch_active_users_for_service(service_id):
|
||||
return query.all()
|
||||
|
||||
|
||||
def dao_find_services_sending_to_tv_numbers(start_date, end_date, threshold=100):
|
||||
def dao_find_services_sending_to_tv_numbers(start_date, end_date, threshold=500):
|
||||
return db.session.query(
|
||||
Notification.service_id.label('service_id'),
|
||||
func.count(Notification.id).label('notification_count')
|
||||
|
||||
Reference in New Issue
Block a user