Skip to content

Commit c9801f9

Browse files
committed
fix(ee): stripe exportSubscriptions support custom products
1 parent 09970db commit c9801f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapps/ee-api/lib/stripe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export function stripeLink(entity: string, id: string) {
176176
export async function exportSubscriptions(): Promise<Record<string, { customer: any; subscription: any }>> {
177177
const result = {};
178178
let starting_after: string | undefined = undefined;
179-
const products = Object.fromEntries((await getAvailableProducts()).map(p => [p.id, p]));
179+
const products = Object.fromEntries((await getAvailableProducts({ custom: true })).map(p => [p.id, p]));
180180
console.log("Products", products);
181181
const cus2sub: Record<string, Stripe.Subscription[]> = {};
182182
const sub2prod: Record<string, Stripe.Product> = {};

0 commit comments

Comments
 (0)