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): allow promotion codes if no discount applied (#6810)
forehalo7041991967bc
diff --git a/packages/backend/server/src/plugins/payment/service.ts b/packages/backend/server/src/plugins/payment/service.tsindex 57fff9695c..48b3d5e55e 100644--- a/packages/backend/server/src/plugins/payment/service.ts+++ b/packages/backend/server/src/plugins/payment/service.ts@@ -204,7 +204,7 @@ export class SubscriptionService {tax_id_collection: {enabled: true,},- discounts,+ ...(discounts ? { discounts } : { allow_promotion_codes: true }),mode: 'subscription',success_url: redirectUrl,customer: customer.stripeCustomerId,