Skip to content

Commit

Permalink
date formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ritiksr25 committed Oct 1, 2019
1 parent 4246b61 commit 06293f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion models/BloodDonor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const BloodDonorSchema = new mongoose.Schema({
bloodGroup: { type: String, required: true },
phone: { type: String, required: true },
email: { type: String, required: true },
dob: { type: Date, required: true },
dob: { type: String, required: true },
address: { type: String, required: true },
hasDonated: { type: Boolean, required: true },
}, { timestamps: true }
Expand Down
4 changes: 2 additions & 2 deletions models/BloodRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ const BloodRequestSchema = new mongoose.Schema({
name: { type: String, required: true },
bloodGroup: { type: String, required: true },
phone: { type: String, required: true },
dob: { type: Date, required: true },
dob: { type: String, required: true },
address: { type: String, required: true },
pincode: { type: Number, required: true },
requestFor: { type: String, enum: ['self', 'other'] },
require: { type: String, required: true, enum: ['platelets', 'blood'] },
units: { type: Number, required: true },
reason: { type: String },
neededBy: { type: Date, required: true },
neededBy: { type: String, required: true },
timings: { type: String },
}, { timestamps: true }
);
Expand Down

0 comments on commit 06293f7

Please sign in to comment.