Skip to content

Commit

Permalink
fix: update not working
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Oct 12, 2024
1 parent 3c21f30 commit 493fedc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/storage/jobs/helpers/updateStripeSubscriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ const updateCustomer = async (customer: Stripe.Customer) => {
.first();

if (sub && !sub.active) {
console.info('Updating customer', customer.id);
console.info('Updating customer', customer.id, customer.email);
await database
.table('customers')
.table('subscriptions')
.where({ email: customer.email })
.update({ active: true });
} else {
Expand Down

0 comments on commit 493fedc

Please sign in to comment.