Stop posting job metadata to the API

The API is looking at the S3 metadata for this information now, so
there’s no need for us to continue sending it through.
This commit is contained in:
Chris Hill-Scott
2018-04-30 12:07:36 +01:00
parent 6ea4cf7c07
commit 98214884d3
5 changed files with 8 additions and 33 deletions

View File

@@ -60,13 +60,9 @@ class JobApiClient(NotifyAdminAPIClient):
return jobs
def create_job(self, job_id, service_id, template_id, original_file_name, notification_count, scheduled_for=None):
data = {
"id": job_id,
"template": template_id,
"original_file_name": original_file_name,
"notification_count": notification_count
}
def create_job(self, job_id, service_id, scheduled_for=None):
data = {"id": job_id}
if scheduled_for:
data.update({'scheduled_for': scheduled_for})