From 01b9d0bcec8480b358f040ccf8b7d4b489156d11 Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Wed, 27 Apr 2022 21:34:20 +0100 Subject: fix: Move attendee password generation serverside --- models/Event.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'models/Event.js') 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({ -- cgit v1.2.3