Skip to content

Commit 55940a8

Browse files
Andrew Farriesroboquat
Andrew Farries
authored andcommitted
Use findStripeSubscriptionId
Use the more general `findStripeSubscriptionId` rather than `findStripeSubscriptionIdForTeam` to allow the latter to be safely removed from the server JSON-RPC API.
1 parent 08650a7 commit 55940a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/dashboard/src/components/BillingAccountSelector.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ export function BillingAccountSelector(props: { onSelected?: () => void }) {
2727
const teamsWithBilling: Team[] = [];
2828
Promise.all(
2929
teams.map(async (t) => {
30-
const subscriptionId = await getGitpodService().server.findStripeSubscriptionIdForTeam(t.id);
30+
const attributionId: string = AttributionId.render({ kind: "team", teamId: t.id });
31+
const subscriptionId = await getGitpodService().server.findStripeSubscriptionId(attributionId);
3132
if (subscriptionId) {
3233
teamsWithBilling.push(t);
3334
}

0 commit comments

Comments
 (0)