Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aasif Khan authored and Aasif Khan committed Nov 27, 2024
1 parent 24884e2 commit 3e5a24c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/playground-web/lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3e5a24c

Please sign in to comment.