Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

update fetch headers for billing alerts

Ben Fornefeld379cc26d5bbb
diff --git a/apps/web/src/components/Dashboard/BillingAlerts.tsx b/apps/web/src/components/Dashboard/BillingAlerts.tsx
index 921770ac1..8a5801233 100644
--- a/apps/web/src/components/Dashboard/BillingAlerts.tsx
+++ b/apps/web/src/components/Dashboard/BillingAlerts.tsx
@@ -54,7 +54,7 @@ export const BillingAlerts = ({
getBillingUrl(domain, `/teams/${team.id}/billing-limits`),
{
headers: {
- 'X-Team-API-Key': team.apiKeys[0],
+ 'X-User-Access-Token': user.accessToken,
},
}
)
@@ -97,7 +97,7 @@ export const BillingAlerts = ({
method: 'PATCH',
headers: {
'Content-Type': 'application/json',
- 'X-Team-API-Key': team.apiKeys[0],
+ 'X-User-Access-Token': user.accessToken,
},
body: JSON.stringify({
[type === 'limit' ? 'limit_amount_gte' : 'alert_amount_gte']: value,
@@ -155,7 +155,7 @@ export const BillingAlerts = ({
{
method: 'DELETE',
headers: {
- 'X-Team-API-Key': team.apiKeys[0],
+ 'X-User-Access-Token': user.accessToken,
},
}
)