mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-13 00:32:16 -05:00
Fix bug in check_service_over_daily_limit
I forgot to return service_stats if the cache exists. And fixed the tests to check service_stats value.
This commit is contained in:
@@ -74,6 +74,7 @@ def check_service_over_daily_message_limit(key_type, service):
|
||||
service.id, int(service_stats), service.message_limit)
|
||||
)
|
||||
raise TooManyRequestsError(service.message_limit)
|
||||
return service_stats
|
||||
|
||||
|
||||
def check_rate_limiting(service, api_key):
|
||||
|
||||
Reference in New Issue
Block a user