From 41bc25001a6d90fed80a7b4d590023f52b10921c Mon Sep 17 00:00:00 2001 From: binenasc <12201000120@muz.ifsuldeminas.edu.br> Date: Mon, 30 Dec 2024 17:22:17 -0300 Subject: [PATCH] fix: employee profile --- api/src/routes/index.ts | 2 ++ web/src/pages/dashboard/equipmentRelease-[id].vue | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/src/routes/index.ts b/api/src/routes/index.ts index 560702d..fead532 100644 --- a/api/src/routes/index.ts +++ b/api/src/routes/index.ts @@ -1,4 +1,6 @@ import { createRouter } from 'aeria' +import { equipmentRouter } from './EquipmentsBorrowoedByUser.js' export const router = createRouter() +router.group('/getEquipmentsBorrowoedByUser', equipmentRouter) diff --git a/web/src/pages/dashboard/equipmentRelease-[id].vue b/web/src/pages/dashboard/equipmentRelease-[id].vue index 43a1376..625bb20 100644 --- a/web/src/pages/dashboard/equipmentRelease-[id].vue +++ b/web/src/pages/dashboard/equipmentRelease-[id].vue @@ -13,7 +13,7 @@ const employeeProps = defineProps() const employee = ref({} as CollectionItemWithId<'employee'>) const equipments = ref[]>([]) -const { error, result } = await aeria().getEquipmentsBorrowedByUser() +const { error, result } = await aeria().equipmentRelease. type Props = { id: String