From 256c232a8541a91ca851f285f1e7913d063f31e1 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Tue, 12 Nov 2024 17:39:48 -0500 Subject: [PATCH] updated README --- README.md | 5 ++++- lib/api/stripe/handleSubscription.ts | 3 +-- pages/api/v1/webhook/index.ts | 11 ----------- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index e8651d4..a75416a 100644 --- a/README.md +++ b/README.md @@ -69,16 +69,19 @@ We've forked the old version from the current repository into [this repo](https: - 📱 Responsive design and supports most modern browsers. - 🌓 Dark/Light mode support. - 🧩 Browser extension, managed by the community. [Star it here!](https://github.com/linkwarden/browser-extension) +- 🔄 Browser Synchronization (using [Floccus](https://floccus.org)!) - ⬇️ Import and export your bookmarks. - 🔐 SSO integration. (Enterprise and Self-hosted users only) - 📦 Installable Progressive Web App (PWA). - 🍏 iOS and MacOS Apps, maintained by [JGeek00](https://github.com/JGeek00). -- 🍎 iOS Shortcut to save links to Linkwarden. +- 🍎 iOS Shortcut to save Links to Linkwarden. - 🔑 API keys. - ✅ Bulk actions. - 👥 User administration. - 🌐 Support for Other Languages (i18n). - 📁 Image and PDF Uploads. +- 🎨 Custom Icons for Links and Collections. +- ⚙️ Customizable View and Adjustable Columns. - ✨ And many more features. (Literally!) ## Like what we're doing? Give us a Star ⭐ diff --git a/lib/api/stripe/handleSubscription.ts b/lib/api/stripe/handleSubscription.ts index 2e61362..1302108 100644 --- a/lib/api/stripe/handleSubscription.ts +++ b/lib/api/stripe/handleSubscription.ts @@ -10,8 +10,7 @@ type Data = { action: | "customer.subscription.created" | "customer.subscription.updated" - | "customer.subscription.deleted" - | "customer.subscription.cancelled"; + | "customer.subscription.deleted"; }; export default async function handleSubscription({ diff --git a/pages/api/v1/webhook/index.ts b/pages/api/v1/webhook/index.ts index 8f6972a..706894d 100644 --- a/pages/api/v1/webhook/index.ts +++ b/pages/api/v1/webhook/index.ts @@ -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}`); }