From 30a5e1aafbb6322120aa3fc97fbee593c66174c4 Mon Sep 17 00:00:00 2001 From: josedario87 Date: Fri, 21 Nov 2025 18:46:14 -0600 Subject: [PATCH] Corregir imports en archivos API del servidor - Cambiar imports de ~/server/utils a rutas relativas - Fix build error en Docker - Build local verificado exitosamente --- nuxt4/server/api/lotes/[id].delete.ts | 2 +- nuxt4/server/api/lotes/[id].get.ts | 2 +- nuxt4/server/api/lotes/[id].patch.ts | 2 +- nuxt4/server/api/lotes/[id]/trazabilidad.get.ts | 2 +- nuxt4/server/api/lotes/index.get.ts | 2 +- nuxt4/server/api/lotes/index.post.ts | 2 +- nuxt4/server/api/operaciones/[id].get.ts | 2 +- nuxt4/server/api/operaciones/index.get.ts | 2 +- nuxt4/server/api/operaciones/index.post.ts | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/nuxt4/server/api/lotes/[id].delete.ts b/nuxt4/server/api/lotes/[id].delete.ts index 54c67ca..3355ce6 100644 --- a/nuxt4/server/api/lotes/[id].delete.ts +++ b/nuxt4/server/api/lotes/[id].delete.ts @@ -1,4 +1,4 @@ -import { deleteLote } from '~/server/utils/queries' +import { deleteLote } from '../../utils/queries' /** * DELETE /api/lotes/:id diff --git a/nuxt4/server/api/lotes/[id].get.ts b/nuxt4/server/api/lotes/[id].get.ts index f5649cb..0332660 100644 --- a/nuxt4/server/api/lotes/[id].get.ts +++ b/nuxt4/server/api/lotes/[id].get.ts @@ -1,4 +1,4 @@ -import { getLoteById } from '~/server/utils/queries' +import { getLoteById } from '../../utils/queries' /** * GET /api/lotes/:id diff --git a/nuxt4/server/api/lotes/[id].patch.ts b/nuxt4/server/api/lotes/[id].patch.ts index 0013e45..c6c10a0 100644 --- a/nuxt4/server/api/lotes/[id].patch.ts +++ b/nuxt4/server/api/lotes/[id].patch.ts @@ -1,4 +1,4 @@ -import { updateLote } from '~/server/utils/queries' +import { updateLote } from '../../utils/queries' /** * PATCH /api/lotes/:id diff --git a/nuxt4/server/api/lotes/[id]/trazabilidad.get.ts b/nuxt4/server/api/lotes/[id]/trazabilidad.get.ts index 18912a3..da354a1 100644 --- a/nuxt4/server/api/lotes/[id]/trazabilidad.get.ts +++ b/nuxt4/server/api/lotes/[id]/trazabilidad.get.ts @@ -1,4 +1,4 @@ -import { getTrazabilidad, getEstadisticasLote } from '~/server/utils/queries' +import { getTrazabilidad, getEstadisticasLote } from '../../../utils/queries' /** * GET /api/lotes/:id/trazabilidad diff --git a/nuxt4/server/api/lotes/index.get.ts b/nuxt4/server/api/lotes/index.get.ts index f363bfa..836ca41 100644 --- a/nuxt4/server/api/lotes/index.get.ts +++ b/nuxt4/server/api/lotes/index.get.ts @@ -1,4 +1,4 @@ -import { getLotes } from '~/server/utils/queries' +import { getLotes } from '../../utils/queries' /** * GET /api/lotes diff --git a/nuxt4/server/api/lotes/index.post.ts b/nuxt4/server/api/lotes/index.post.ts index ab1dfd8..c75b0cc 100644 --- a/nuxt4/server/api/lotes/index.post.ts +++ b/nuxt4/server/api/lotes/index.post.ts @@ -1,4 +1,4 @@ -import { createLote } from '~/server/utils/queries' +import { createLote } from '../../utils/queries' /** * POST /api/lotes diff --git a/nuxt4/server/api/operaciones/[id].get.ts b/nuxt4/server/api/operaciones/[id].get.ts index 7244196..16d03ca 100644 --- a/nuxt4/server/api/operaciones/[id].get.ts +++ b/nuxt4/server/api/operaciones/[id].get.ts @@ -1,4 +1,4 @@ -import { getOperacionConLotes } from '~/server/utils/queries' +import { getOperacionConLotes } from '../../utils/queries' /** * GET /api/operaciones/:id diff --git a/nuxt4/server/api/operaciones/index.get.ts b/nuxt4/server/api/operaciones/index.get.ts index 349483f..39f568d 100644 --- a/nuxt4/server/api/operaciones/index.get.ts +++ b/nuxt4/server/api/operaciones/index.get.ts @@ -1,4 +1,4 @@ -import { getOperaciones } from '~/server/utils/queries' +import { getOperaciones } from '../../utils/queries' /** * GET /api/operaciones diff --git a/nuxt4/server/api/operaciones/index.post.ts b/nuxt4/server/api/operaciones/index.post.ts index 544aaea..773ee86 100644 --- a/nuxt4/server/api/operaciones/index.post.ts +++ b/nuxt4/server/api/operaciones/index.post.ts @@ -1,4 +1,4 @@ -import { createOperacion } from '~/server/utils/queries' +import { createOperacion } from '../../utils/queries' /** * POST /api/operaciones