Skip to content

Commit 02e8d44

Browse files
authored
Fix signup (#166)
1 parent 328dfce commit 02e8d44

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: src/resolvers/applicationStageResolver.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -618,13 +618,13 @@ export const applicationStageResolvers: any = {
618618
switch (applicantStage) {
619619
case "Technical Assessment":
620620
await TechnicalAssessment.updateOne(
621-
{ applicantId, status: "No action" },
621+
{ applicantId },
622622
{ $set: { score } }
623623
);
624624
break;
625625
case "Interview Assessment":
626626
await InterviewAssessment.updateOne(
627-
{ applicantId, status: "No action" },
627+
{ applicantId },
628628
{ $set: { interviewScore: score } }
629629
);
630630
break;

Diff for: src/validations/createUser.validation.ts

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ interface UserLoggedInput {
99
gender: String;
1010
country: String;
1111
code: String;
12+
bio: String;
1213
}
1314

1415
export const validateUserLogged = Joi.object<UserLoggedInput>({
@@ -37,4 +38,5 @@ export const validateUserLogged = Joi.object<UserLoggedInput>({
3738
telephone: Joi.string(),
3839
country: Joi.string(),
3940
code: Joi.string().min(2).max(4).message('Code must be between 2 and 4 characters long.'),
41+
bio: Joi.string().optional()
4042
});

0 commit comments

Comments
 (0)