Skip to content

Commit e8fd7ec

Browse files
committed
Check if isDebug
1 parent 2a1d740 commit e8fd7ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/billing/cloudpayments.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,13 @@ userId: ${userId}`
150150

151151
if (isCardLinkOperation) {
152152
nextPaymentDate = new Date(lastChargeDate);
153-
nextPaymentDate.setMonth(lastChargeDate.getMonth() + 1);
154153
} else {
155154
nextPaymentDate = new Date(now);
155+
}
156+
157+
if (workspace.isDebug) {
158+
nextPaymentDate.setDate(nextPaymentDate.getDate() + 1);
159+
} else {
156160
nextPaymentDate.setMonth(nextPaymentDate.getMonth() + 1);
157161
}
158162

0 commit comments

Comments
 (0)