Skip to content

Commit

Permalink
Fix dumb bug
Browse files Browse the repository at this point in the history
  • Loading branch information
3laaHisham committed Nov 8, 2023
1 parent c525e3b commit 9b2720e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/src/models/patient.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ const patientSchema = new Schema(
default: 0
},
emergencyContact: {
name: { type: String, required: true },
phone: { type: String, required: true },
relation: { type: String, enum: ['Husband', 'Wife', 'Child'], required: true }
type: {
name: { type: String, required: true },
phone: { type: String, required: true },
relation: { type: String, enum: ['Husband', 'Wife', 'Child'], required: true }
}
},
family: {
type: [
Expand Down

0 comments on commit 9b2720e

Please sign in to comment.