diff options
author | Raphael Kabo <mail@raphaelkabo.com> | 2022-11-13 18:44:08 +0000 |
---|---|---|
committer | Raphael Kabo <mail@raphaelkabo.com> | 2022-11-13 18:44:08 +0000 |
commit | e2690ab3399b7b65601561347bf740a6fed38fa7 (patch) | |
tree | fe2c80899c43c895c0e389ca5e05635f907f68e7 | |
parent | dc165eb935308a05272f5ed1b20e2d1527ef9eb9 (diff) |
fix: set sparse index on attendee password
-rwxr-xr-x | models/Event.js | 4 |
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: { |