We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28d1330 commit 26539f3Copy full SHA for 26539f3
apps/playground-web/lib/api.ts
@@ -37,7 +37,7 @@ export const fetchHealthCheck = async (): Promise<{ commandsLeft: number; cleanu
37
const response = await WebService.get(healthCheckURL);
38
39
if (response?.headers) {
40
- const commandsLeft = parseInt(response?.headers['x-commands-left'] || '1000', 10);
+ const commandsLeft = parseInt(response?.headers['x-ratelimit-remaining'] || '1000', 10);
41
const cleanupTimeLeft = parseInt(response?.headers['x-next-cleanup-time'] || `${15 * 60}`, 10);
42
43
return { commandsLeft, cleanupTimeLeft };
0 commit comments