From c021b9ebe8537c6534e19591bf17e6a8397577c1 Mon Sep 17 00:00:00 2001 From: Ayush Mukherjee Date: Thu, 16 Nov 2023 04:06:22 +0530 Subject: [PATCH] chore: test population fix --- src/models/events.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/models/events.js b/src/models/events.js index a51457c..bcec7e3 100644 --- a/src/models/events.js +++ b/src/models/events.js @@ -5,9 +5,13 @@ const events = new mongoose.Schema({ type: String, required: true, unique: true, - } + }, + streams: [{ + type: mongoose.Schema.Types.ObjectId, + ref: 'Streams', + }] }); const Event = mongoose.model('Event', events) -module.exports = Event \ No newline at end of file +module.exports = Event