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

User Story 7.1 / 7.2 - Application Page #2362

Merged
merged 19 commits into from
May 19, 2021
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion backend/lib/endpoints/schema/applicants.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const createApplicantSchema = {

const updateApplicantStatusSchema = {
body: strictSchema()
.prop("status", S.string().enum(APPLICANT_STATUS).required()),
.prop("status", S.string().enum(APPLICANT_STATUS)),
params: strictSchema()
.prop("applicantId", S.string().required()),
};
Expand Down
6 changes: 4 additions & 2 deletions backend/lib/models/Applicant.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const applicantSchema = new Schema(
enum: ORG_MEMBERS_TYPES,
default: "volunteer",
required: true,
type: String
type: String,
default: "volunteer",
}
},
applicantApplied: {
Expand All @@ -35,7 +36,8 @@ const applicantSchema = new Schema(
enum: APPLICANT_STATUS,
default: "applied",
required: true,
type: String
type: String,
applied: "applied"
},
},
{ collection: "applicants", timestamps: true },
Expand Down
Loading