Correctly wire up job relationships

This commit is contained in:
Michael Lange
2018-03-13 14:41:54 -07:00
parent 47f0f7c34c
commit 6efca8400b
3 changed files with 4 additions and 0 deletions

View File

@@ -106,5 +106,6 @@ function assignJob(evaluation, server) {
const job = evaluation.jobId ? server.db.jobs.find(evaluation.jobId) : pickOne(server.db.jobs);
evaluation.update({
jobId: job.id,
job_id: job.id,
});
}

View File

@@ -114,6 +114,7 @@ export default Factory.extend({
groupNames: groups.mapBy('name'),
job,
job_id: job.id,
JobID: job.id,
namespace: job.namespace,
});

View File

@@ -19,7 +19,9 @@ export default RestSerializer.extend({
}
},
keyForCollection: keyCase,
keyForAttribute: keyCase,
keyForRelationship: keyCase,
keyForRelationshipIds: keyCase,
keyForEmbeddedRelationship: keyCase,
});