From 4191eb3c28e9dd74c30e730dba590208d1850332 Mon Sep 17 00:00:00 2001
From: Antonin Coquet <ext.sopra.acoquet@grandlyon.com>
Date: Mon, 10 May 2021 11:19:08 +0200
Subject: [PATCH] fix: change naming for clarification

---
 src/migrations/scripts/1620308186636-public-women.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/migrations/scripts/1620308186636-public-women.ts b/src/migrations/scripts/1620308186636-public-women.ts
index 16bfe2fc6..5b1ccfb8b 100644
--- a/src/migrations/scripts/1620308186636-public-women.ts
+++ b/src/migrations/scripts/1620308186636-public-women.ts
@@ -42,7 +42,7 @@ function downgradePublic(doc) {
 function removeWomen(doc) {
   if (doc.modules) {
     doc.modules = doc.modules.filter(function (elem) {
-      return elem.id != 'women';
+      return elem.id != 'uniquementFemmes' && elem.id != 'women';
     });
   }
   return doc;
@@ -51,8 +51,8 @@ function removeWomen(doc) {
 function addWomen(doc) {
   if (doc.modules) {
     doc.modules.push({
-      id: 'women',
-      text: 'Femmes',
+      id: 'uniquementFemmes',
+      text: 'Uniquement femmes',
     });
   }
   return doc;
-- 
GitLab