We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57795b8 commit bf7bd38Copy full SHA for bf7bd38
1 file changed
src/resolvers/billingNew.ts
@@ -109,7 +109,11 @@ export default {
109
const now = new Date();
110
const invoiceId = `${workspace.name} ${now.getDate()}/${now.getMonth() + 1} ${plan.name}`;
111
112
- const isCardLinkOperation = workspace.tariffPlanId.toString() === tariffPlanId && !workspace.isTariffPlanExpired();
+ let isCardLinkOperation = false;
113
+
114
+ if (workspace.tariffPlanId.toString() === tariffPlanId && !workspace.isTariffPlanExpired() && !workspace.isBlocked) {
115
+ isCardLinkOperation = true;
116
+ }
117
118
// Calculate next payment date
119
const lastChargeDate = workspace.lastChargeDate ? new Date(workspace.lastChargeDate) : now;
0 commit comments