mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Add rate_limit and message_limit to SerialisedService
The API needs these to check whether a service can send a notification. This commit also updates all the tests in `test_validators.py` to take a serialised service, not a database object.
This commit is contained in:
@@ -120,7 +120,9 @@ class SerialisedService(SerialisedModel):
|
||||
'active',
|
||||
'contact_link',
|
||||
'email_from',
|
||||
'message_limit',
|
||||
'permissions',
|
||||
'rate_limit',
|
||||
'research_mode',
|
||||
'restricted',
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user