Fix duplicate Mongoose index warnings in Document and Member models
This commit is contained in:
parent
5f94462afd
commit
8d82ec46d3
2 changed files with 2 additions and 5 deletions
|
|
@ -63,13 +63,11 @@ const DocumentSchema: Schema = new Schema({
|
|||
'bylaws', 'financial_report', 'annual_report', 'board_report', 'committee_report',
|
||||
'meeting_agenda', 'board_meeting_agenda', 'committee_meeting_agenda', 'program_document'
|
||||
],
|
||||
index: true
|
||||
},
|
||||
isPublic: {
|
||||
type: Boolean,
|
||||
required: true,
|
||||
default: false,
|
||||
index: true
|
||||
},
|
||||
meetingDate: {
|
||||
type: Date
|
||||
|
|
|
|||
|
|
@ -39,13 +39,12 @@ const MemberSchema: Schema = new Schema({
|
|||
required: true,
|
||||
trim: true
|
||||
},
|
||||
email: {
|
||||
type: String,
|
||||
email: {
|
||||
type: String,
|
||||
required: true,
|
||||
trim: true,
|
||||
lowercase: true,
|
||||
match: [/^.+@.+\..+$/, 'Please enter a valid email address'],
|
||||
unique: true
|
||||
},
|
||||
phone: {
|
||||
type: String,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue