updated README

This commit is contained in:
daniel31x13
2024-11-12 17:39:48 -05:00
parent ceed23ff51
commit 256c232a85
3 changed files with 5 additions and 14 deletions
-11
View File
@@ -98,17 +98,6 @@ export default async function webhook(
});
break;
case "customer.subscription.cancelled":
await handleSubscription({
id: data.id,
active: !(data.current_period_end * 1000 < Date.now()),
quantity: data?.lines?.data[0]?.quantity ?? 1,
periodStart: data.current_period_start,
periodEnd: data.current_period_end,
action: "customer.subscription.cancelled",
});
break;
default:
console.log(`Unhandled event type ${eventType}`);
}