Skip to content

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.

fix(server): disable payment module requirements temporarily (#5683)

liuyi151a53c57533
diff --git a/packages/backend/server/src/config/affine.ts b/packages/backend/server/src/config/affine.ts
index 9bc889951b..3ff3211b28 100644
--- a/packages/backend/server/src/config/affine.ts
+++ b/packages/backend/server/src/config/affine.ts
@@ -29,6 +29,7 @@ AFFiNE.metrics.enabled = true;
// Plugins Section Start
AFFiNE.plugins.use('payment', {
stripe: {
+ keys: {},
apiVersion: '2023-10-16',
},
});
diff --git a/packages/backend/server/src/plugins/payment/index.ts b/packages/backend/server/src/plugins/payment/index.ts
index e54d3fa1f8..9c11f95563 100644
--- a/packages/backend/server/src/plugins/payment/index.ts
+++ b/packages/backend/server/src/plugins/payment/index.ts
@@ -17,10 +17,11 @@ import { StripeWebhook } from './webhook';
UserSubscriptionResolver,
],
controllers: [StripeWebhook],
- requires: [
- 'plugins.payment.stripe.keys.APIKey',
- 'plugins.payment.stripe.keys.webhookKey',
- ],
+ // TODO(@forehalo): enable this requirements when conditional query is implemented in frontend
+ // requires: [
+ // 'plugins.payment.stripe.keys.APIKey',
+ // 'plugins.payment.stripe.keys.webhookKey',
+ // ],
contributesTo: ServerFeature.Payment,
})
export class PaymentModule {}