mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
Fix resource references in models
This commit is contained in:
parent
d6e7058947
commit
e143698484
@ -15,12 +15,11 @@ function resolveResource (Job, ProjectUpdate, AdHocCommand, SystemJob, WorkflowJ
|
||||
const { type } = $stateParams;
|
||||
|
||||
let Resource;
|
||||
let related;
|
||||
let related = 'events';
|
||||
|
||||
switch (type) {
|
||||
case 'project':
|
||||
Resource = ProjectUpdate;
|
||||
related = 'events';
|
||||
break;
|
||||
case 'playbook':
|
||||
Resource = Job;
|
||||
|
@ -1,7 +1,7 @@
|
||||
let BaseModel;
|
||||
|
||||
function SystemJobModel (method, resource, config) {
|
||||
BaseModel.call(this, 'jobs');
|
||||
BaseModel.call(this, 'system_jobs');
|
||||
|
||||
this.Constructor = SystemJobModel;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user