Skip to content

Commit b2f1a43

Browse files
committed
feat: don't set unknown fields for Jobs
1 parent f6177a1 commit b2f1a43

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/events/projects/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,18 +198,13 @@ async function projectCreatedKafkaHandler(app, topic, payload) {
198198
_.map(
199199
jobs,
200200
(job) => {
201-
const startDate = new Date();
202-
const endDate = moment(startDate).add(Number(job.duration), 'M'); // the unit of duration is month
203201
// make sure that skills would be unique in the list and only include ones with 'skillId' (actually they all suppose to be with skillId)
204202
const skills = _.chain(job.skills).map('skillId').uniq().compact()
205203
.value();
206204
return createTaasJob({
207205
projectId: project.id,
208-
externalId: '0', // hardcode for now
209206
title: job.title,
210207
description: job.description,
211-
startDate,
212-
endDate,
213208
skills,
214209
numPositions: Number(job.people),
215210
resourceType: _.get(job, 'role.value', ''),

0 commit comments

Comments
 (0)