From d8f560ae12b335d30744da3a6ce4ce4b796ca127 Mon Sep 17 00:00:00 2001 From: HotelSync Date: Thu, 19 Mar 2026 12:23:58 +0300 Subject: [PATCH] Fix TS type: status literal union for PushEvent --- src/lib/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/api.ts b/src/lib/api.ts index b50e060..f606e40 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -290,7 +290,7 @@ export const api = { getLog: (slug: string) => req<{ - pushEvents: { ts: string; action: string; roomNumber: string; netupRoom: string; url: string; status: string; httpStatus?: number; error?: string }[] + pushEvents: { ts: string; action: string; roomNumber: string; netupRoom: string; url: string; status: 'ok' | 'error' | 'skipped'; httpStatus?: number; error?: string }[] pullRequests: { ts: string; method: string; url: string; headers: Record; query: Record; body: unknown }[] }>('GET', `/api/hotels/${slug}/netup/log`),