Skip to content

Commit

Permalink
feat: hello
Browse files Browse the repository at this point in the history
  • Loading branch information
aexshafii committed Nov 2, 2024
1 parent 41f3242 commit 883e550
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/app/api/webhook/handlers/checkout-complete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { updateUserSubscriptionData } from '../utils';

export async function handleCheckoutComplete(event: WebhookEvent): Promise<WebhookHandlerResponse> {
const session = event.data.object;

const customerData: CustomerData = {
userId: session.metadata?.userId,
customerId: session.customer,
Expand All @@ -19,7 +19,6 @@ export async function handleCheckoutComplete(event: WebhookEvent): Promise<Webho
};

try {
await updateUserSubscriptionData(customerData);
await updateClerkMetadata(customerData);

return {
Expand Down

0 comments on commit 883e550

Please sign in to comment.