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.

chore(server): disable nightly subscriptions expirasion check (#10298)

forehalofd5897dbe62c
diff --git a/packages/backend/server/src/plugins/payment/cron.ts b/packages/backend/server/src/plugins/payment/cron.ts
index 3e3a77eef7..0ef59dddf2 100644
--- a/packages/backend/server/src/plugins/payment/cron.ts
+++ b/packages/backend/server/src/plugins/payment/cron.ts
@@ -45,13 +45,14 @@ export class SubscriptionCronJobs {
}
);
- await this.queue.add(
- 'nightly.notifyAboutToExpireWorkspaceSubscriptions',
- {},
- {
- jobId: 'nightly-payment-notify-about-to-expire-workspace-subscriptions',
- }
- );
+ // FIXME(@forehalo): the strategy is totally wrong, for monthly plan. redesign required
+ // await this.queue.add(
+ // 'nightly.notifyAboutToExpireWorkspaceSubscriptions',
+ // {},
+ // {
+ // jobId: 'nightly-payment-notify-about-to-expire-workspace-subscriptions',
+ // }
+ // );
}
@OnJob('nightly.notifyAboutToExpireWorkspaceSubscriptions')