mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Convert value from redis to an int.
This has been properly tested locally with redis enabled.
This commit is contained in:
@@ -74,7 +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
|
||||
return int(service_stats)
|
||||
|
||||
|
||||
def check_rate_limiting(service, api_key):
|
||||
|
||||
Reference in New Issue
Block a user