Skip to content

Commit d68ef89

Browse files
committed
Merge branch 'fix/payments-logs' into stage
2 parents 99307ef + 3aed5ed commit d68ef89

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/billing/cloudpayments.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ userId: ${userId}`
153153
} else {
154154
nextPaymentDate = new Date(now);
155155
}
156-
156+
157157
if (workspace.isDebug) {
158158
nextPaymentDate.setDate(nextPaymentDate.getDate() + 1);
159159
} else {
@@ -527,7 +527,7 @@ userId: ${userId}`
527527
});
528528

529529
this.handleSendingToTelegramError(telegram.sendMessage(`✅ [Billing / Pay] Card linked
530-
Transaction details:
530+
531531
workspace id: ${workspace._id}
532532
date of operation: ${body.DateTime}
533533
first payment date: ${data.cloudPayments?.recurrent.startDate}
@@ -547,7 +547,7 @@ sum: ${data.cloudPayments?.recurrent.amount}${body.Currency}`
547547
await this.sendReceipt(workspace, tariffPlan, userEmail);
548548

549549
this.handleSendingToTelegramError(telegram.sendMessage(`✅ [Billing / Pay] New payment
550-
Transaction details:
550+
551551
amount: ${+body.Amount} ${body.Currency}
552552
next payment date: ${data.cloudPayments?.recurrent.startDate}
553553
workspace id: ${workspace._id}
@@ -666,11 +666,11 @@ subscription id: ${body.SubscriptionId}`
666666
console.log('💎 CloudPayments /recurrent request', body);
667667

668668
this.handleSendingToTelegramError(telegram.sendMessage(`✅ [Billing / Recurrent] New recurrent transaction
669-
Transaction details:
670-
amount: ${+body.Amount} ${body.Currency}
671-
next payment date: ${body.NextTransactionDate}
672-
workspace id: ${body.AccountId}
673-
subscription id: ${body.Id}`
669+
670+
amount: ${+body.Amount} ${body.Currency}
671+
next payment date: ${body.NextTransactionDate}
672+
workspace id: ${body.AccountId}
673+
subscription id: ${body.Id}`
674674
, TelegramBotURLs.Money));
675675
HawkCatcher.send(new Error(`[Billing / Recurrent] New recurrent event with ${body.Status} status`), req.body);
676676

0 commit comments

Comments
 (0)