Skip to content

Commit

Permalink
fix: fixed stripe webhook typo on subscriptions check
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Nov 26, 2024
1 parent 21b4d97 commit 97b5638
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/api/v1/stripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,9 @@ async function processEvent(ctx, event) {
const subscriptions = await stripe.subscriptions.list({
customer: event.data.object.customer
});
const filtered = subscriptions.filter((s) => s.status !== 'canceled');
const filtered = subscriptions.data.filter(
(s) => s.status !== 'canceled'
);
if (filtered.length > 1) {
emailHelper({
template: 'alert',
Expand Down

0 comments on commit 97b5638

Please sign in to comment.