mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Check input is a UUID
This commit is contained in:
@@ -318,11 +318,11 @@ def insert_inbound_numbers_from_file(file_name):
|
|||||||
|
|
||||||
|
|
||||||
@notify_command(name='replay-create-pdf-letters')
|
@notify_command(name='replay-create-pdf-letters')
|
||||||
@click.option('-n', '--notification_id', required=True,
|
@click.option('-n', '--notification_id', type=click.UUID, required=True,
|
||||||
help="Notification id of the letter that needs the create_letters_pdf task replayed")
|
help="Notification id of the letter that needs the create_letters_pdf task replayed")
|
||||||
def replay_create_pdf_letters(notification_id):
|
def replay_create_pdf_letters(notification_id):
|
||||||
print("Create task to create_letters_pdf for notification: {}".format(notification_id))
|
print("Create task to create_letters_pdf for notification: {}".format(notification_id))
|
||||||
create_letters_pdf.apply_async([notification_id], queue=QueueNames.CREATE_LETTERS_PDF)
|
create_letters_pdf.apply_async([str(notification_id)], queue=QueueNames.CREATE_LETTERS_PDF)
|
||||||
|
|
||||||
|
|
||||||
@notify_command(name='replay-service-callbacks')
|
@notify_command(name='replay-service-callbacks')
|
||||||
|
|||||||
Reference in New Issue
Block a user