mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
User cache for service in send_to_provider methods.
This will remove a call to the db if the service exists in the cache.
This commit is contained in:
@@ -75,6 +75,7 @@ class SerialisedTemplate(SerialisedModel):
|
||||
class SerialisedService(SerialisedModel):
|
||||
ALLOWED_PROPERTIES = {
|
||||
'id',
|
||||
'name',
|
||||
'active',
|
||||
'contact_link',
|
||||
'email_from',
|
||||
@@ -83,6 +84,8 @@ class SerialisedService(SerialisedModel):
|
||||
'rate_limit',
|
||||
'research_mode',
|
||||
'restricted',
|
||||
'prefix_sms',
|
||||
'email_branding'
|
||||
}
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user