summaryrefslogtreecommitdiff
path: root/src/routes/event.ts
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2024-02-25 21:34:33 +0000
committerRaphael Kabo <raphaelkabo@hey.com>2024-02-26 00:11:03 +0000
commitb3c9cba6478dc16d135313aa6d0adcc02d67ece6 (patch)
tree508ef236dc805b950fedeeca7f8dd3559d66a162 /src/routes/event.ts
parentafd9fc4477fff90e5db917f350d99c3d01fba2bd (diff)
feat: optional public events/groups
Diffstat (limited to 'src/routes/event.ts')
-rw-r--r--src/routes/event.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/routes/event.ts b/src/routes/event.ts
index fb9d8c7..6be5ff8 100644
--- a/src/routes/event.ts
+++ b/src/routes/event.ts
@@ -140,6 +140,7 @@ router.post(
viewPassword: "", // Backwards compatibility
editPassword: "", // Backwards compatibility
editToken: editToken,
+ showOnPublicList: eventData?.publicBoolean,
eventGroup: isPartOfEventGroup ? eventGroup?._id : null,
usersCanAttend: eventData.joinBoolean ? true : false,
showUsersList: false, // Backwards compatibility
@@ -371,6 +372,7 @@ router.put(
url: eventData.eventURL,
hostName: eventData.hostName,
image: eventImageFilename,
+ showOnPublicList: eventData.publicBoolean,
usersCanAttend: eventData.joinBoolean,
showUsersList: false, // Backwards compatibility
usersCanComment: eventData.interactionBoolean,