summaryrefslogtreecommitdiff
path: root/src/models/EventGroup.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/EventGroup.ts')
-rwxr-xr-xsrc/models/EventGroup.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/models/EventGroup.ts b/src/models/EventGroup.ts
index 2b5c2aa..de7187d 100755
--- a/src/models/EventGroup.ts
+++ b/src/models/EventGroup.ts
@@ -16,6 +16,7 @@ export interface IEventGroup extends mongoose.Document {
firstLoad?: boolean;
events?: mongoose.Types.ObjectId[];
subscribers?: ISubscriber[];
+ showOnPublicList?: boolean;
}
const Subscriber = new mongoose.Schema({
@@ -70,6 +71,10 @@ const EventGroupSchema = new mongoose.Schema({
},
events: [{ type: mongoose.Schema.Types.ObjectId, ref: "Event" }],
subscribers: [Subscriber],
+ showOnPublicList: {
+ type: Boolean,
+ default: false,
+ },
});
export default mongoose.model<IEventGroup>("EventGroup", EventGroupSchema);