From d0659745e7da93dd77408990f2ee5bb3b1baa913 Mon Sep 17 00:00:00 2001 From: Emilly Date: Tue, 5 Jul 2022 14:32:07 -0300 Subject: [PATCH 1/3] =?UTF-8?q?feat:(challenge)=20implementa=C3=A7=C3=A3o?= =?UTF-8?q?=20de=20string=20no=20tipo=20de=20desafio=20e(candidate)=20reto?= =?UTF-8?q?rno=20da=20data=20@MarquesEmilly=20@ErickCardoso007?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/candidate/index.ts | 1 + src/controllers/challenge/index.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controllers/candidate/index.ts b/src/controllers/candidate/index.ts index b50af97..1e0ed18 100644 --- a/src/controllers/candidate/index.ts +++ b/src/controllers/candidate/index.ts @@ -9,6 +9,7 @@ const responseHandle = httpResponseHandler() const mapCandidates = (id) => { const normaliseDate = (date) => { + return date const newDate = date.split("/") return `${newDate[1]}/${newDate[0]}/${newDate[2]}` } diff --git a/src/controllers/challenge/index.ts b/src/controllers/challenge/index.ts index f6652c7..4afc084 100644 --- a/src/controllers/challenge/index.ts +++ b/src/controllers/challenge/index.ts @@ -12,6 +12,7 @@ const httpResponse = httpResponseHandler() const mapChallenges = (id) => { const normaliseDate = (date) => { + return date const newDate = date.split("/") return `${newDate[1]}/${newDate[0]}/${newDate[2]}` } @@ -40,7 +41,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 }, } }) From 03b72865882d8b30b1a0abfa1e42c3678643ef24 Mon Sep 17 00:00:00 2001 From: Emilly Date: Tue, 5 Jul 2022 15:33:44 -0300 Subject: [PATCH 2/3] feat: chamada de type em challengesPromisse e em newChallenge @MarquesEmilly e @ErickCardoso007 --- src/controllers/challenge/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/challenge/index.ts b/src/controllers/challenge/index.ts index 4afc084..88a5c8e 100644 --- a/src/controllers/challenge/index.ts +++ b/src/controllers/challenge/index.ts @@ -129,6 +129,7 @@ export const importAllChallenge = async (request, response) => { hiringProcess, exercises, exerciseStatement, + type, } = data const newChallenge = await challengeRepository.findOne({ @@ -152,6 +153,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( From 49b4b7793189a0e98c5a4a97b4bd21c99bf1c45e Mon Sep 17 00:00:00 2001 From: Emilly Date: Wed, 6 Jul 2022 09:27:31 -0300 Subject: [PATCH 3/3] feat: tirando return date pedido no PR @EmillyMarques @ErickCardoso007 --- src/controllers/candidate/index.ts | 1 - src/controllers/challenge/index.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/controllers/candidate/index.ts b/src/controllers/candidate/index.ts index 1e0ed18..b50af97 100644 --- a/src/controllers/candidate/index.ts +++ b/src/controllers/candidate/index.ts @@ -9,7 +9,6 @@ const responseHandle = httpResponseHandler() const mapCandidates = (id) => { const normaliseDate = (date) => { - return date const newDate = date.split("/") return `${newDate[1]}/${newDate[0]}/${newDate[2]}` } diff --git a/src/controllers/challenge/index.ts b/src/controllers/challenge/index.ts index 88a5c8e..e9744b0 100644 --- a/src/controllers/challenge/index.ts +++ b/src/controllers/challenge/index.ts @@ -12,7 +12,6 @@ const httpResponse = httpResponseHandler() const mapChallenges = (id) => { const normaliseDate = (date) => { - return date const newDate = date.split("/") return `${newDate[1]}/${newDate[0]}/${newDate[2]}` }