summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorlowercasename <raphaelkabo@gmail.com>2019-09-14 10:08:09 +0100
committerlowercasename <raphaelkabo@gmail.com>2019-09-14 10:08:09 +0100
commit9d3da3563ce13d54673cfa3468911caeb4836741 (patch)
treeb5a751b303552d68e1e406ea4ae110892f235153 /models
parent3b15d58ef86c041b44523462460fb3d70352ab1b (diff)
Functionality to limit number of attendees
Diffstat (limited to 'models')
-rwxr-xr-xmodels/Event.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/Event.js b/models/Event.js
index 90c8117..43af171 100755
--- a/models/Event.js
+++ b/models/Event.js
@@ -155,6 +155,9 @@ const EventSchema = new mongoose.Schema({
default: true
},
attendees: [Attendees],
+ maxAttendees: {
+ type: Number
+ },
comments: [CommentSchema]
});