diff options
author | Raphael Kabo <mail@raphaelkabo.com> | 2022-04-27 21:34:20 +0100 |
---|---|---|
committer | Raphael Kabo <mail@raphaelkabo.com> | 2022-04-27 21:34:20 +0100 |
commit | 01b9d0bcec8480b358f040ccf8b7d4b489156d11 (patch) | |
tree | 90cef74999d4b85b58cd2ee00be25809d1fc3ea4 /models | |
parent | 1c8348d553988f5474c8d7896c2804dc1d62159a (diff) |
fix: Move attendee password generation serverside
Diffstat (limited to 'models')
-rwxr-xr-x | models/Event.js | 9 |
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({ |