Fixed processing of incomplete letter jobs

- `template` argument passed in to `job_complete` should be `template.template_type` otherwise the job status is incorrectly set
This commit is contained in:
Ken Tsang
2017-12-07 11:58:49 +00:00
parent a08411bde0
commit 68659bab1b
2 changed files with 3 additions and 5 deletions

View File

@@ -580,4 +580,4 @@ def process_incomplete_job(job_id):
if row_number > resume_from_row:
process_row(row_number, recipient, personalisation, template, job, job.service)
job_complete(job, job.service, template, resumed=True)
job_complete(job, job.service, template.template_type, resumed=True)