Fix TS type: status literal union for PushEvent

This commit is contained in:
2026-03-19 12:23:58 +03:00
parent 44fa9d24f1
commit d8f560ae12

View File

@@ -290,7 +290,7 @@ export const api = {
getLog: (slug: string) => getLog: (slug: string) =>
req<{ 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<string, unknown>; query: Record<string, unknown>; body: unknown }[] pullRequests: { ts: string; method: string; url: string; headers: Record<string, unknown>; query: Record<string, unknown>; body: unknown }[]
}>('GET', `/api/hotels/${slug}/netup/log`), }>('GET', `/api/hotels/${slug}/netup/log`),