summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2024-02-06 08:55:32 +0000
committerRaphael Kabo <raphaelkabo@hey.com>2024-02-06 08:55:32 +0000
commitc0f58b298248ba8682b556389525280c7088e025 (patch)
treebe1a429d1c1f2dc269ec0efb962ae8eacfd7601b /src
parent456de15aea325cec94a6c2c83c01442665670efb (diff)
Allow setting attendee visibility from UI
Diffstat (limited to 'src')
-rwxr-xr-xsrc/routes.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/routes.js b/src/routes.js
index 475f5a0..ab12a3a 100755
--- a/src/routes.js
+++ b/src/routes.js
@@ -687,6 +687,7 @@ router.post("/attendevent/:eventID", async (req, res) => {
"attendees.$.name": req.body.attendeeName,
"attendees.$.email": req.body.attendeeEmail,
"attendees.$.number": req.body.attendeeNumber,
+ "attendees.$.visibility": !!req.body.attendeeVisible ? "public" : "private",
},
},
)