summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorRaphael Kabo <mail@raphaelkabo.com>2022-04-27 21:34:20 +0100
committerRaphael Kabo <mail@raphaelkabo.com>2022-04-27 21:34:20 +0100
commit01b9d0bcec8480b358f040ccf8b7d4b489156d11 (patch)
tree90cef74999d4b85b58cd2ee00be25809d1fc3ea4 /models
parent1c8348d553988f5474c8d7896c2804dc1d62159a (diff)
fix: Move attendee password generation serverside
Diffstat (limited to 'models')
-rwxr-xr-xmodels/Event.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/models/Event.js b/models/Event.js
index 64cf398..60fd65f 100755
--- a/models/Event.js
+++ b/models/Event.js
@@ -15,12 +15,15 @@ const Attendees = new mongoose.Schema({
},
removalPassword: {
type: String,
- trim: true
+ trim: true,
+ unique: true,
},
id: {
type: String,
- trim: true
- }
+ trim: true,
+ unique: true,
+ },
+ created: Date,
})
const Followers = new mongoose.Schema({