From 3e5a24c7ddaadc554531a7bbb2e59cdbb8da1f57 Mon Sep 17 00:00:00 2001 From: Aasif Khan Date: Wed, 27 Nov 2024 14:36:25 +0530 Subject: [PATCH] fix --- apps/playground-web/lib/api.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/playground-web/lib/api.ts b/apps/playground-web/lib/api.ts index 9936e62..44a978c 100644 --- a/apps/playground-web/lib/api.ts +++ b/apps/playground-web/lib/api.ts @@ -45,8 +45,8 @@ export const fetchHealthCheck = async (): Promise<{ commandsLeft: number; cleanu const response = await WebService.get(healthCheckURL); if (response?.headers) { - const commandsLeft = parseInt(response.headers['X-Commands-Left'] || '1000', 10); - const cleanupTimeLeft = parseInt(response.headers['X-Next-Cleanup-Time'] || `${15 * 60}`, 10); + const commandsLeft = parseInt(response?.headers['x-commands-left'] || '1000', 10); + const cleanupTimeLeft = parseInt(response?.headers['x-next-cleanup-time'] || `${15 * 60}`, 10); return { commandsLeft, cleanupTimeLeft }; } else {