mirror of
https://github.com/GSA/notifications-api.git
synced 2026-07-28 19:59:47 -04:00
Only return non-archived letter contact blocks
Changed DAO functions which return one letter contact block and all letter contact blocks for a service to only return non-archived ones.
This commit is contained in:
@@ -438,14 +438,16 @@ def create_service_sms_sender(
|
||||
|
||||
|
||||
def create_letter_contact(
|
||||
service,
|
||||
contact_block,
|
||||
is_default=True
|
||||
service,
|
||||
contact_block,
|
||||
is_default=True,
|
||||
archived=False
|
||||
):
|
||||
data = {
|
||||
'service': service,
|
||||
'contact_block': contact_block,
|
||||
'is_default': is_default,
|
||||
'archived': archived,
|
||||
}
|
||||
letter_content = ServiceLetterContact(**data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user