From 7dab6ad0c871e576a3b91dc4acd14d2f842990db Mon Sep 17 00:00:00 2001
From: MarianoCampetella <marianocampe94@gmail.com>
Date: Mon, 18 May 2026 14:49:44 -0300
Subject: [PATCH 1/3] =?UTF-8?q?Cambios=20en=20motivo=20de=20suspensi=C3=B3?=
 =?UTF-8?q?n=20de=20agenda?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 modules/turnos/routes/agenda.ts | 17 +++++++++--------
 modules/turnos/schemas/turno.ts | 11 ++++++++++-
 2 files changed, 19 insertions(+), 9 deletions(-)

diff --git a/modules/turnos/routes/agenda.ts b/modules/turnos/routes/agenda.ts
index 8992d67b6a..6954655e93 100644
--- a/modules/turnos/routes/agenda.ts
+++ b/modules/turnos/routes/agenda.ts
@@ -636,16 +636,14 @@ router.patch('/agenda/:id*?', (req, res, next) => {
             }
 
             Auth.audit(data, req);
-            data.save(async (error) => {
+            try {
+                await data.save();
                 EventCore.emitAsync('citas:agenda:update', data);
                 if (event.data) {
                     EventCore.emitAsync(`citas:${event.object}:${event.accion}`, event.data);
                 }
-                objetoLog.err = error || undefined;
+                objetoLog.err = undefined;
                 agendaLog.info('update', objetoLog, req);
-                if (error) {
-                    return next(error);
-                }
 
                 if (req.body.op === 'suspendida') {
                     const liberar = [];
@@ -675,9 +673,12 @@ router.patch('/agenda/:id*?', (req, res, next) => {
                         await liberarRefTurno(event.data, req);
                     }
                 }
-            });
-
-            res.json(data);
+                return res.json(data);
+            } catch (error) {
+                objetoLog.err = error || undefined;
+                agendaLog.info('update', objetoLog, req);
+                return next(error);
+            }
 
             return;
         });
diff --git a/modules/turnos/schemas/turno.ts b/modules/turnos/schemas/turno.ts
index a21f21f1a5..8921888fb7 100644
--- a/modules/turnos/schemas/turno.ts
+++ b/modules/turnos/schemas/turno.ts
@@ -44,7 +44,16 @@ const turnoSchema = new mongoose.Schema({
     link: String,
     motivoSuspension: {
         type: String,
-        enum: ['edilicia', 'profesional', 'organizacion', 'agendaSuspendida']
+        enum: [
+            'agendaSuspendida',
+            'gestion-pacientes',
+            'reoganizacion-asistencial',
+            'reorganizacion-asistencial',
+            'medida-fuerza',
+            'ausencia-profesional',
+            'edilicio-infraest-conect',
+            'disponibilidad-espacio'
+        ]
     },
     avisoSuspension: {
         type: String,

From 3238299c8d7954db0981866c2c7aac54b3425e3b Mon Sep 17 00:00:00 2001
From: MarianoCampetella <marianocampe94@gmail.com>
Date: Mon, 13 Jul 2026 10:53:04 -0300
Subject: [PATCH 2/3] ci: update pull request labeler action to v5

---
 .github/workflows/labeler.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index 1c8b7852de..e0f83ed2c3 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -6,6 +6,6 @@ jobs:
   triage:
     runs-on: ubuntu-latest
     steps:
-    - uses: actions/labeler@v2
+    - uses: actions/labeler@v5
       with:
-        repo-token: "${{ secrets.GITHUB_TOKEN }}"
\ No newline at end of file
+        repo-token: "${{ secrets.GITHUB_TOKEN }}"

From 0a337098b75240e3d846d2ef27b3c9b28e949056 Mon Sep 17 00:00:00 2001
From: MarianoCampetella <marianocampe94@gmail.com>
Date: Mon, 13 Jul 2026 11:12:36 -0300
Subject: [PATCH 3/3] update labeler config to v5 format"

---
 .github/labeler.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/.github/labeler.yml b/.github/labeler.yml
index b0bcbd120b..893a8e4e03 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -1,4 +1,7 @@
 script:
-    - scripts/*
+  - changed-files:
+      - any-glob-to-any-file: 'scripts/**'
+
 config:
-    - config.private.ts.example
\ No newline at end of file
+  - changed-files:
+      - any-glob-to-any-file: 'config.private.ts.example'
\ No newline at end of file
