Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

186/import tipo do desafio #190

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/controllers/challenge/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const mapChallenges = (id) => {
"Você se incomodaria em abrir sua Webcam durante as interações quanto a Aceleradora Ágil?"
],
exerciseStatement: r["Enunciado dos exercícios"],
type: "",
type: r["Você desenvolveu o exercício com:"],
hiringProcess: { id },
}
})
Expand Down Expand Up @@ -128,6 +128,7 @@ export const importAllChallenge = async (request, response) => {
hiringProcess,
exercises,
exerciseStatement,
type,
} = data

const newChallenge = await challengeRepository.findOne({
Expand All @@ -151,6 +152,7 @@ export const importAllChallenge = async (request, response) => {
newChallenge.cityState = cityState
newChallenge.exercises = exercises
newChallenge.exerciseStatement = exerciseStatement
newChallenge.type = type
return await challengeRepository.save(newChallenge)
}
return IncompleteCandidateService().createIncompleteCandidate(
Expand Down