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',
|
'bylaws', 'financial_report', 'annual_report', 'board_report', 'committee_report',
|
||||||
'meeting_agenda', 'board_meeting_agenda', 'committee_meeting_agenda', 'program_document'
|
'meeting_agenda', 'board_meeting_agenda', 'committee_meeting_agenda', 'program_document'
|
||||||
],
|
],
|
||||||
index: true
|
|
||||||
},
|
},
|
||||||
isPublic: {
|
isPublic: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: true,
|
required: true,
|
||||||
default: false,
|
default: false,
|
||||||
index: true
|
|
||||||
},
|
},
|
||||||
meetingDate: {
|
meetingDate: {
|
||||||
type: Date
|
type: Date
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,6 @@ const MemberSchema: Schema = new Schema({
|
||||||
trim: true,
|
trim: true,
|
||||||
lowercase: true,
|
lowercase: true,
|
||||||
match: [/^.+@.+\..+$/, 'Please enter a valid email address'],
|
match: [/^.+@.+\..+$/, 'Please enter a valid email address'],
|
||||||
unique: true
|
|
||||||
},
|
},
|
||||||
phone: {
|
phone: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue