Use job_ids as a key for jobs relationship for build
This commit is contained in:
parent
ca633bdf7b
commit
dbd83c8643
|
@ -40,7 +40,9 @@ var Serializer = V2FallbackSerializer.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
keyForV2Relationship: function(key, typeClass, method) {
|
keyForV2Relationship: function(key, typeClass, method) {
|
||||||
if (key === 'repo') {
|
if(key === 'jobs') {
|
||||||
|
return 'job_ids';
|
||||||
|
} else if (key === 'repo') {
|
||||||
return 'repository_id';
|
return 'repository_id';
|
||||||
} else if (key === 'commit') {
|
} else if (key === 'commit') {
|
||||||
return key;
|
return key;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user