There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(server): wrong previous subscription check (#10306)
liuyid490e767eb69
diff --git a/packages/backend/server/src/plugins/payment/manager/user.ts b/packages/backend/server/src/plugins/payment/manager/user.tsindex 437610d721..070a3254ab 100644--- a/packages/backend/server/src/plugins/payment/manager/user.ts+++ b/packages/backend/server/src/plugins/payment/manager/user.ts@@ -634,17 +634,6 @@ export class UserSubscriptionManager extends SubscriptionManager {EarlyAccessType.AI);- // fast pass if the user is not early access for any plan- if (!proEarlyAccess && !aiEarlyAccess) {- return {- proEarlyAccess,- aiEarlyAccess,- proSubscribed: false,- aiSubscribed: false,- onetime: false,- };- }-let proSubscribed = false;let aiSubscribed = false;@@ -661,14 +650,12 @@ export class UserSubscriptionManager extends SubscriptionManager {continue;}- if (sub.status === 'past_due' || sub.status === 'canceled') {- if (lookupKey.plan === SubscriptionPlan.Pro) {- proSubscribed = true;- }+ if (lookupKey.plan === SubscriptionPlan.Pro) {+ proSubscribed = true;+ }- if (lookupKey.plan === SubscriptionPlan.AI) {- aiSubscribed = true;- }+ if (lookupKey.plan === SubscriptionPlan.AI) {+ aiSubscribed = true;}}