From 13dac3f2278e30df0b61916836312f03097871be Mon Sep 17 00:00:00 2001 From: HotelSync Date: Fri, 27 Mar 2026 18:08:47 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20EquipmentPage=20TS=20errors=20=E2=80=94?= =?UTF-8?q?=20stray=20bracket=20and=20testDevice=20return=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- src/lib/api.ts | 2 +- src/pages/EquipmentPage.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/api.ts b/src/lib/api.ts index 86f56be..9df61a5 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -352,7 +352,7 @@ export const api = { removeDevice: (slug: string, id: string, deviceId: string) => req('DELETE', `/api/hotels/${slug}/workstations/${id}/devices/${deviceId}`), testDevice: (slug: string, wsId: string, deviceId: string) => - req<{ ok: boolean; error?: string; message?: string }>('POST', `/api/hotels/${slug}/workstations/${wsId}/test-device/${deviceId}`), + req<{ ok: boolean; error?: string; message?: string; kkt?: Record; shift?: Record }>('POST', `/api/hotels/${slug}/workstations/${wsId}/test-device/${deviceId}`), sendUpdate: (slug: string, wsId: string) => req<{ ok: true }>('POST', `/api/hotels/${slug}/workstations/${wsId}/update`), updateAll: (slug: string) => diff --git a/src/pages/EquipmentPage.tsx b/src/pages/EquipmentPage.tsx index d10e148..ecf8d76 100644 --- a/src/pages/EquipmentPage.tsx +++ b/src/pages/EquipmentPage.tsx @@ -762,7 +762,6 @@ function WorkstationCard({ ) })()} - )} )}