Skip to content

Commit

Permalink
Fix signup (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
berniceu authored Dec 2, 2024
1 parent 328dfce commit 02e8d44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resolvers/applicationStageResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,13 +618,13 @@ export const applicationStageResolvers: any = {
switch (applicantStage) {
case "Technical Assessment":
await TechnicalAssessment.updateOne(
{ applicantId, status: "No action" },
{ applicantId },
{ $set: { score } }
);
break;
case "Interview Assessment":
await InterviewAssessment.updateOne(
{ applicantId, status: "No action" },
{ applicantId },
{ $set: { interviewScore: score } }
);
break;
Expand Down
2 changes: 2 additions & 0 deletions src/validations/createUser.validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ interface UserLoggedInput {
gender: String;
country: String;
code: String;
bio: String;
}

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

0 comments on commit 02e8d44

Please sign in to comment.