We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a1d740 commit e8fd7ecCopy full SHA for e8fd7ec
1 file changed
src/billing/cloudpayments.ts
@@ -150,9 +150,13 @@ userId: ${userId}`
150
151
if (isCardLinkOperation) {
152
nextPaymentDate = new Date(lastChargeDate);
153
- nextPaymentDate.setMonth(lastChargeDate.getMonth() + 1);
154
} else {
155
nextPaymentDate = new Date(now);
+ }
156
+
157
+ if (workspace.isDebug) {
158
+ nextPaymentDate.setDate(nextPaymentDate.getDate() + 1);
159
+ } else {
160
nextPaymentDate.setMonth(nextPaymentDate.getMonth() + 1);
161
}
162
0 commit comments