Skip to content

Commit 16b2351

Browse files
committed
chore(api): update polar webhook event
1 parent 6019199 commit 16b2351

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/src/billing/billing.controller.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ export class BillingController {
5252
switch (payload.type) {
5353
case 'subscription.created':
5454
case 'subscription.active':
55-
console.log('polar subscription.created')
55+
case 'subscription.updated':
56+
console.log('polar webhook event', payload.type)
5657
console.log(payload)
5758
await this.billingService.switchPlan({
5859
userId: payload.data?.metadata?.userId as string,

0 commit comments

Comments
 (0)