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

trim values before accessing DB #1499

Merged
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
16 changes: 8 additions & 8 deletions backend/models/project.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ Idea for the future: programmingLanguages, numberGithubContributions (pull these
*/

const projectSchema = mongoose.Schema({
name: { type: String },
description: { type: String },
githubIdentifier: { type: String },
name: { type: String, trim: true },
description: { type: String, trim: true },
githubIdentifier: { type: String, trim: true },
projectStatus: { type: String }, // Active, Completed, or Paused
location: { type: String }, // DTLA, Westside, South LA, or Remote (hacknight)
location: { type: String, trim: true }, // DTLA, Westside, South LA, or Remote (hacknight)
//teamMembers: { type: String }, // commented since we should be able to get this from Project Team Members table
createdDate: { type: Date, default: Date.now }, // date/time project was created
completedDate: { type: Date }, // only if Status = Completed, date/time completed
githubUrl: { type: String }, // link to main repo
slackUrl: { type: String }, // link to Slack channel
googleDriveUrl: { type: String },
githubUrl: { type: String, trim: true }, // link to main repo
slackUrl: { type: String, trim: true }, // link to Slack channel
googleDriveUrl: { type: String, trim: true },
googleDriveId: { type: String },
hflaWebsiteUrl: { type: String },
hflaWebsiteUrl: { type: String, trim: true },
videoConferenceLink: { type: String },
lookingDescription: { type: String }, // narrative on what the project is looking for
recruitingCategories: [{ type: String }], // same as global Skills picklist
Expand Down
Loading