mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Changed response to 201 for send_letter_jobs
This commit is contained in:
@@ -17,7 +17,7 @@ def send_letter_jobs():
|
|||||||
job_ids = validate(request.get_json(), letter_job_ids)
|
job_ids = validate(request.get_json(), letter_job_ids)
|
||||||
notify_celery.send_task(name="send-files-to-dvla", args=(job_ids['job_ids'],), queue="process-ftp")
|
notify_celery.send_task(name="send-files-to-dvla", args=(job_ids['job_ids'],), queue="process-ftp")
|
||||||
|
|
||||||
return jsonify(data={"response": "Task created to send files to DVLA"}), 200
|
return jsonify(data={"response": "Task created to send files to DVLA"}), 201
|
||||||
|
|
||||||
|
|
||||||
@letter_job.route('/letter-jobs', methods=['GET'])
|
@letter_job.route('/letter-jobs', methods=['GET'])
|
||||||
|
|||||||
Reference in New Issue
Block a user