Skip to content

Commit

Permalink
trim values before accessing DB (#1499)
Browse files Browse the repository at this point in the history
Co-authored-by: Brad <[email protected]>
  • Loading branch information
bkmorgan3 and Brad authored Sep 5, 2023
1 parent 058d06c commit dbba2be
Showing 1 changed file with 8 additions and 8 deletions.
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

0 comments on commit dbba2be

Please sign in to comment.