From 7c20b268c09c81834ef9d666d6ec825d47bf5d7c Mon Sep 17 00:00:00 2001 From: Bastien Seree Date: Mon, 26 Aug 2024 15:42:41 +0200 Subject: [PATCH] [#45] Add current_cursus attribute to user --- backend/web/server/plugins/cyberleague/schemas/UserSchema.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/web/server/plugins/cyberleague/schemas/UserSchema.js b/backend/web/server/plugins/cyberleague/schemas/UserSchema.js index ee95b9b560..e0b6cedff0 100644 --- a/backend/web/server/plugins/cyberleague/schemas/UserSchema.js +++ b/backend/web/server/plugins/cyberleague/schemas/UserSchema.js @@ -110,6 +110,10 @@ const UserSchema = new Schema({ city: { type: AddressSchema, required: false + }, + current_cursus: { + type: String, + required: false } }, {...schemaOptions, ...DISCRIMINATOR_KEY})