commit
b4dd47aa37
|
@ -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.
|
- 📱 Responsive design and supports most modern browsers.
|
||||||
- 🌓 Dark/Light mode support.
|
- 🌓 Dark/Light mode support.
|
||||||
- 🧩 Browser extension, managed by the community. [Star it here!](https://github.com/linkwarden/browser-extension)
|
- 🧩 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.
|
- ⬇️ Import and export your bookmarks.
|
||||||
- 🔐 SSO integration. (Enterprise and Self-hosted users only)
|
- 🔐 SSO integration. (Enterprise and Self-hosted users only)
|
||||||
- 📦 Installable Progressive Web App (PWA).
|
- 📦 Installable Progressive Web App (PWA).
|
||||||
- 🍏 iOS and MacOS Apps, maintained by [JGeek00](https://github.com/JGeek00).
|
- 🍏 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.
|
- 🔑 API keys.
|
||||||
- ✅ Bulk actions.
|
- ✅ Bulk actions.
|
||||||
- 👥 User administration.
|
- 👥 User administration.
|
||||||
- 🌐 Support for Other Languages (i18n).
|
- 🌐 Support for Other Languages (i18n).
|
||||||
- 📁 Image and PDF Uploads.
|
- 📁 Image and PDF Uploads.
|
||||||
|
- 🎨 Custom Icons for Links and Collections.
|
||||||
|
- ⚙️ Customizable View and Adjustable Columns.
|
||||||
- ✨ And many more features. (Literally!)
|
- ✨ And many more features. (Literally!)
|
||||||
|
|
||||||
## Like what we're doing? Give us a Star ⭐
|
## Like what we're doing? Give us a Star ⭐
|
||||||
|
|
|
@ -10,8 +10,7 @@ type Data = {
|
||||||
action:
|
action:
|
||||||
| "customer.subscription.created"
|
| "customer.subscription.created"
|
||||||
| "customer.subscription.updated"
|
| "customer.subscription.updated"
|
||||||
| "customer.subscription.deleted"
|
| "customer.subscription.deleted";
|
||||||
| "customer.subscription.cancelled";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default async function handleSubscription({
|
export default async function handleSubscription({
|
||||||
|
|
|
@ -98,17 +98,6 @@ export default async function webhook(
|
||||||
});
|
});
|
||||||
break;
|
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:
|
default:
|
||||||
console.log(`Unhandled event type ${eventType}`);
|
console.log(`Unhandled event type ${eventType}`);
|
||||||
}
|
}
|
||||||
|
|
Ŝarĝante…
Reference in New Issue