From 217a2ddfd71531c921cda3caa2d86cce6b6b19e5 Mon Sep 17 00:00:00 2001 From: SeghirOumo Date: Tue, 30 Jul 2024 14:16:19 +0200 Subject: [PATCH] Sosynpl[#150]: changed dedicated_admin to be multiple --- .../plugins/sosynpl/schemas/CustomerFreelanceSchema.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/backend/web/server/plugins/sosynpl/schemas/CustomerFreelanceSchema.js b/backend/web/server/plugins/sosynpl/schemas/CustomerFreelanceSchema.js index 8859601699..5308234322 100644 --- a/backend/web/server/plugins/sosynpl/schemas/CustomerFreelanceSchema.js +++ b/backend/web/server/plugins/sosynpl/schemas/CustomerFreelanceSchema.js @@ -345,9 +345,13 @@ const CustomerFreelanceSchema = new Schema({ required: false, }, dedicated_admin: { - type: Schema.Types.ObjectId, - ref: 'user', - required: false + type: [{ + type: Schema.Types.ObjectId, + ref: 'user', + required: false + }], + default: [], + required: false, }, identity_proof_1: { type: String,