1
0
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:
gconsidine 2018-02-19 10:03:06 -05:00 committed by Jake McDermott
parent d6e7058947
commit e143698484
2 changed files with 2 additions and 3 deletions

View File

@ -15,12 +15,11 @@ function resolveResource (Job, ProjectUpdate, AdHocCommand, SystemJob, WorkflowJ
const { type } = $stateParams; const { type } = $stateParams;
let Resource; let Resource;
let related; let related = 'events';
switch (type) { switch (type) {
case 'project': case 'project':
Resource = ProjectUpdate; Resource = ProjectUpdate;
related = 'events';
break; break;
case 'playbook': case 'playbook':
Resource = Job; Resource = Job;

View File

@ -1,7 +1,7 @@
let BaseModel; let BaseModel;
function SystemJobModel (method, resource, config) { function SystemJobModel (method, resource, config) {
BaseModel.call(this, 'jobs'); BaseModel.call(this, 'system_jobs');
this.Constructor = SystemJobModel; this.Constructor = SystemJobModel;