feat: backend module awareness & optional request (#5909)

This commit is contained in:
DarkSky
2024-02-28 08:29:37 +00:00
parent 35454c3bfc
commit 3432f355b0
7 changed files with 34 additions and 31 deletions

View File

@@ -17,11 +17,10 @@ import { StripeWebhook } from './webhook';
UserSubscriptionResolver,
],
controllers: [StripeWebhook],
// TODO(@forehalo): enable this requirements when conditional query is implemented in frontend
// requires: [
// 'plugins.payment.stripe.keys.APIKey',
// 'plugins.payment.stripe.keys.webhookKey',
// ],
requires: [
'plugins.payment.stripe.keys.APIKey',
'plugins.payment.stripe.keys.webhookKey',
],
contributesTo: ServerFeature.Payment,
if: config => config.flavor.graphql,
})