Skip to content

Commit 26539f3

Browse files
Aasif KhanAasif Khan
authored andcommitted
change header name
1 parent 28d1330 commit 26539f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/playground-web/lib/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const fetchHealthCheck = async (): Promise<{ commandsLeft: number; cleanu
3737
const response = await WebService.get(healthCheckURL);
3838

3939
if (response?.headers) {
40-
const commandsLeft = parseInt(response?.headers['x-commands-left'] || '1000', 10);
40+
const commandsLeft = parseInt(response?.headers['x-ratelimit-remaining'] || '1000', 10);
4141
const cleanupTimeLeft = parseInt(response?.headers['x-next-cleanup-time'] || `${15 * 60}`, 10);
4242

4343
return { commandsLeft, cleanupTimeLeft };

0 commit comments

Comments
 (0)