Skip to content

Commit

Permalink
update fetch headers for billing alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-fornefeld committed Jan 24, 2025
1 parent 1e45455 commit 379cc26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/web/src/components/Dashboard/BillingAlerts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
)
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -155,7 +155,7 @@ export const BillingAlerts = ({
{
method: 'DELETE',
headers: {
'X-Team-API-Key': team.apiKeys[0],
'X-User-Access-Token': user.accessToken,
},
}
)
Expand Down

0 comments on commit 379cc26

Please sign in to comment.