mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Added an endpoint to get letter-branding by id.
This commit is contained in:
@@ -3,6 +3,10 @@ from app.dao.dao_utils import transactional
|
||||
from app.models import LetterBranding
|
||||
|
||||
|
||||
def dao_get_letter_branding_by_id(letter_branding_id):
|
||||
return LetterBranding.query.filter(LetterBranding.id == letter_branding_id).one()
|
||||
|
||||
|
||||
def dao_get_letter_branding_by_domain(domain):
|
||||
return LetterBranding.query.filter(
|
||||
LetterBranding.domain == domain
|
||||
|
||||
Reference in New Issue
Block a user