We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6019199 commit 16b2351Copy full SHA for 16b2351
api/src/billing/billing.controller.ts
@@ -52,7 +52,8 @@ export class BillingController {
52
switch (payload.type) {
53
case 'subscription.created':
54
case 'subscription.active':
55
- console.log('polar subscription.created')
+ case 'subscription.updated':
56
+ console.log('polar webhook event', payload.type)
57
console.log(payload)
58
await this.billingService.switchPlan({
59
userId: payload.data?.metadata?.userId as string,
0 commit comments