Remove check for org metadata param in customer

This commit is contained in:
Martin Kleinschrodt 2022-07-26 11:17:50 +02:00
parent 7a1aef847f
commit e3cd8b8066
1 changed files with 1 additions and 3 deletions

View File

@ -359,9 +359,7 @@ export class StripeProvisioner extends BasicProvisioner {
email,
expand: ["data.subscriptions", "data.tax_ids"],
});
customer = existingCustomers.data.find(
(c) => !c.metadata.org && (!c.metadata.account || c.metadata.account === accountId)
);
customer = existingCustomers.data.find((c) => !c.metadata.account || c.metadata.account === accountId);
}
// Create a new customer