From 89d41e7c76732c791cd03db1c67c8b08b911c1a4 Mon Sep 17 00:00:00 2001 From: Bastien Seree Date: Mon, 16 Sep 2024 17:52:42 +0200 Subject: [PATCH] Cyberleague: [#133] Add suggested_content attribute to content schema --- .../server/plugins/cyberleague/schemas/ContentSchema.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backend/web/server/plugins/cyberleague/schemas/ContentSchema.js b/backend/web/server/plugins/cyberleague/schemas/ContentSchema.js index 42e1f072f9..a69ce0aefe 100644 --- a/backend/web/server/plugins/cyberleague/schemas/ContentSchema.js +++ b/backend/web/server/plugins/cyberleague/schemas/ContentSchema.js @@ -86,6 +86,14 @@ const ContentSchema = new Schema({ expertise_set: { type: Schema.Types.ObjectId, ref: 'expertiseSet', + }, + suggested_content: { + type: [{ + type: Schema.Types.ObjectId, + ref: 'content', + required: true + }], + default: [] } }, schemaOptions)