Skip to content

Commit 8f0e752

Browse files
committed
fix: small improvements
1 parent c44df10 commit 8f0e752

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/events/projects/postTaasJobs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import axios from 'axios';
99
/**
1010
* Create taas job.
1111
*
12-
* @param {String} authToken the authorization token
12+
* @param {String} authHeader the authorization header
1313
* @param {Object} data the job data
1414
* @return {Object} the job created
1515
*/
16-
async function createTaasJob(authToken, data) {
16+
async function createTaasJob(authHeader, data) {
1717
const headers = {
1818
'Content-Type': 'application/json',
19-
Authorization: authToken,
19+
Authorization: authHeader,
2020
};
2121
const res = await axios
2222
.post(config.taasJobApiUrl, data, { headers })
@@ -54,7 +54,7 @@ async function createTaasJobsFromProject(req, project, logger) {
5454
projectId: project.id,
5555
title: job.title,
5656
description: job.description,
57-
duration: job.duration,
57+
duration: Number(job.duration),
5858
skills,
5959
numPositions: Number(job.people),
6060
resourceType: _.get(job, 'role.value', ''),

0 commit comments

Comments
 (0)