Browse Source

chore(api): update polar webhook event

pull/58/head v2.4.1
isra el 12 months ago
parent
commit
16b2351d9c
  1. 3
      api/src/billing/billing.controller.ts

3
api/src/billing/billing.controller.ts

@ -52,7 +52,8 @@ export class BillingController {
switch (payload.type) {
case 'subscription.created':
case 'subscription.active':
console.log('polar subscription.created')
case 'subscription.updated':
console.log('polar webhook event', payload.type)
console.log(payload)
await this.billingService.switchPlan({
userId: payload.data?.metadata?.userId as string,

Loading…
Cancel
Save