mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-31 11:49:58 -04:00
Refactor to add separate letter branding client
We were getting all letter logos from a method in the email branding client. Since we will be adding more client methods to deal with letters, it makes things clearer to separate the email and letter branding clients.
This commit is contained in:
@@ -8,6 +8,7 @@ from app.notify_client.email_branding_client import email_branding_client
|
||||
from app.notify_client.inbound_number_client import inbound_number_client
|
||||
from app.notify_client.invite_api_client import invite_api_client
|
||||
from app.notify_client.job_api_client import job_api_client
|
||||
from app.notify_client.letter_branding_client import letter_branding_client
|
||||
from app.notify_client.organisations_api_client import organisations_client
|
||||
from app.notify_client.service_api_client import service_api_client
|
||||
from app.notify_client.template_folder_api_client import (
|
||||
@@ -304,7 +305,7 @@ class Service():
|
||||
|
||||
@cached_property
|
||||
def letter_branding(self):
|
||||
return email_branding_client.get_letter_email_branding().get(
|
||||
return letter_branding_client.get_letter_branding().get(
|
||||
self.dvla_organisation, '001'
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user