Fix duplicate Mongoose index warnings in Document and Member models

This commit is contained in:
Chris Haulmark 2026-05-24 22:54:33 -06:00
parent 5f94462afd
commit 8d82ec46d3
2 changed files with 2 additions and 5 deletions

View file

@ -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

View file

@ -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,