Skip to content

Commit

Permalink
feat: removed stripe metadata "service" (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
flohoch committed Nov 11, 2023
1 parent 6dc3e92 commit 38a7442
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pages/api/frontend/v0.1/stripe/products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,8 @@ export async function getProducts(): Promise<Product[]> {
// products from other services)
const filteredProductsByMetadata = products.data.filter((product) => {
product = product as Stripe.Product;
if (product.metadata["service"] && product.metadata["isActive"]) {
return (
product.metadata["service"].toLowerCase() === "onlaunch" &&
product.metadata["isActive"] === "true"
);
if (product.metadata["isActive"]) {
return product.metadata["isActive"] === "true";
}
return false;
});
Expand Down

0 comments on commit 38a7442

Please sign in to comment.