Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
quidl committed Aug 30, 2024
1 parent c56d8d2 commit f734acd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/core/api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,11 @@ module.exports = {
requestJob(uuid, organizationId) {
return httpInternal.get(urlParam.requestJob(uuid, organizationId));
},

getJob(jobId) {
return httpInternal.get(urlParam.requestJob(jobId));
},

requestJob(uuid, teamId) {
return httpInternal.get(urlParam.requestJob(uuid, teamId));
},

updateJob(body, apiKey) {
return httpInternal.post(urlParam.updateJob(), body, withAuthorization(apiKey));
},
Expand Down
4 changes: 2 additions & 2 deletions src/service/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ class Agent {

// Read job configuration from file
const jobBody = fs.readJsonSync('job.json', { encoding: 'utf-8' });
const { id: jobId } = jobBody;
let {
id: jobId,
parameter,
testProject: { projectId },
} = jobBody;
Expand All @@ -417,7 +417,7 @@ class Agent {
return;
}
parameter = requestJobResponse.body.parameter;
testProject = requestJobResponse.body.testProject;
projectId = requestJobResponse.body.testProject.projectId;
}

const jobApiKey = parameter.environmentVariables
Expand Down

0 comments on commit f734acd

Please sign in to comment.