summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Kabo <mail@raphaelkabo.com>2022-11-13 18:44:08 +0000
committerRaphael Kabo <mail@raphaelkabo.com>2022-11-13 18:44:08 +0000
commite2690ab3399b7b65601561347bf740a6fed38fa7 (patch)
treefe2c80899c43c895c0e389ca5e05635f907f68e7
parentdc165eb935308a05272f5ed1b20e2d1527ef9eb9 (diff)
fix: set sparse index on attendee password
-rwxr-xr-xmodels/Event.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/models/Event.js b/models/Event.js
index 60fd65f..07da03f 100755
--- a/models/Event.js
+++ b/models/Event.js
@@ -17,11 +17,13 @@ const Attendees = new mongoose.Schema({
type: String,
trim: true,
unique: true,
+ sparse: true,
},
id: {
type: String,
trim: true,
unique: true,
+ sparse: true,
},
created: Date,
})
@@ -46,7 +48,7 @@ const Followers = new mongoose.Schema({
type: String,
trim: true
},
-}, {_id: false})
+}, { _id: false })
const ReplySchema = new mongoose.Schema({
id: {