use new send-jobs-to-dvla task instead of send-files-to-dvla

the tasks (on the ftp app) do the same thing, but to improve clarity
i've renamed it to jobs, because we'll be adding a notifications one
soon
This commit is contained in:
Leo Hemsted
2017-09-12 16:13:07 +01:00
parent ca1856eb20
commit 2c758cbccd
6 changed files with 8 additions and 7 deletions

View File

@@ -151,7 +151,7 @@ def process_letter_notification(*, letter_data, api_key, template):
raise BadRequestError(message='Cannot send letters with a team api key', status_code=403)
if api_key.service.restricted and api_key.key_type != KEY_TYPE_TEST:
raise BadRequestError(message='Cannot send letters when service is in trial mode', status_code=403)
raise BadRequestError(message='Cannot send letters when service is in trial mode', status_code=403)
job = create_letter_api_job(template)
notification = create_letter_notification(letter_data, job, api_key)