diff --git a/src/lib/storage/jobs/helpers/updateStripeSubscriptions.ts b/src/lib/storage/jobs/helpers/updateStripeSubscriptions.ts index 15021862..26804b43 100644 --- a/src/lib/storage/jobs/helpers/updateStripeSubscriptions.ts +++ b/src/lib/storage/jobs/helpers/updateStripeSubscriptions.ts @@ -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 {