diff --git a/.env b/.env
index 2f26ed02da8b5ec45b282490c9443c541e04f4c7..26702f26babec1b6eb05b8c6cbdb623c4ffd2104 100644
--- a/.env
+++ b/.env
@@ -2,5 +2,5 @@ PORT=8000
 INSTANCE=PROD
 HOST=localhost
 USER=root
-PASSWORD=rootroot
-DB=parameter_database
\ No newline at end of file
+PASSWORD=mysql
+DB=repp_users
\ No newline at end of file
diff --git a/src/Services/ParameterService.ts b/src/Services/ParameterService.ts
index e76ec6112de3dff277a4936669cf2c7053674986..8bb2070783faf5b84f62518d2e4e38a9f588e46a 100644
--- a/src/Services/ParameterService.ts
+++ b/src/Services/ParameterService.ts
@@ -227,17 +227,36 @@ const updateDefaultWeight = async (parameter: DefaultWeightDTO): Promise<void> =
 
 const updatePercentage = async (params: DefaultExtraDataDTO[], total: number): Promise<void> => {
   if (total === 100) {
-    params.forEach(async (param: DefaultExtraDataDTO) => {
-      await DefaultExtraData.update(
-        { value: param.value },
-        {
-          where: {
-            id: param.id,
-          },
+    // No se mete en un for porque hay problemas con el await
+    await DefaultExtraData.update(
+      { value: params[0].value },
+      {
+        where: {
+          id: params[0].id,
         },
-      ).catch((err) => {
-        throw err;
-      });
+      },
+    ).catch((err) => {
+      throw err;
+    });
+    await DefaultExtraData.update(
+      { value: params[1].value },
+      {
+        where: {
+          id: params[1].id,
+        },
+      },
+    ).catch((err) => {
+      throw err;
+    });
+    await DefaultExtraData.update(
+      { value: params[2].value },
+      {
+        where: {
+          id: params[2].id,
+        },
+      },
+    ).catch((err) => {
+      throw err;
     });
   } else {
     throw new Error('These percentages must add up to 100');