Skip to content

Commit

Permalink
fix invoice paid
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminshafii committed Nov 27, 2024
1 parent 36d3f2d commit c277309
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/app/api/webhook/handlers/invoice-paid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const stripe = new Stripe(process.env.STRIPE_SECRET_KEY!, {
});

async function resetUserUsageAndSetLastPayment(userId: string) {
console.log("resetUserUsageAndSetLastPayment", userId);
await db
.update(UserUsageTable)
.set({
Expand Down Expand Up @@ -82,6 +83,6 @@ export const handleInvoicePaid = createWebhookHandler(
};
},
{
requiredMetadata: ['userId'],
requiredMetadata: [''],
}
);

0 comments on commit c277309

Please sign in to comment.