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): only auto apply coupon in pro subscription (#6452)
liuyiedef9b27353d
diff --git a/packages/backend/server/src/plugins/payment/service.ts b/packages/backend/server/src/plugins/payment/service.tsindex b13ac10936..1657cdf65f 100644--- a/packages/backend/server/src/plugins/payment/service.ts+++ b/packages/backend/server/src/plugins/payment/service.ts@@ -116,7 +116,7 @@ export class SubscriptionService {discount ??= {};discount.promotion_code = code;}- } else {+ } else if (plan === SubscriptionPlan.Pro) {const coupon = await this.getAvailableCoupon(user,CouponType.EarlyAccess