From eac378d3597c8065908af40f11204e111ecfc4a4 Mon Sep 17 00:00:00 2001
From: Etienne LOUPIAS <eloupias@grandlyon.com>
Date: Thu, 12 Jan 2023 09:32:42 +0100
Subject: [PATCH] fix: missing data in structure admin (optional email)

---
 src/structures/schemas/structure.schema.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/structures/schemas/structure.schema.ts b/src/structures/schemas/structure.schema.ts
index 5a22c1129..3f6f2f685 100644
--- a/src/structures/schemas/structure.schema.ts
+++ b/src/structures/schemas/structure.schema.ts
@@ -70,8 +70,7 @@ export class Structure {
   contactPhone?: string;
 
   @Prop()
-  @IsNotEmpty()
-  contactMail: string;
+  contactMail?: string;
 
   @Prop()
   website: string;
-- 
GitLab