Skip to content

Commit b13d481

Browse files
committed
Lint
1 parent 7698721 commit b13d481

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

src/billing/cloudpayments.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ import { ClientApi, ClientService, CustomerReceiptItem, ReceiptApi, ReceiptTypes
4545

4646
const PENNY_MULTIPLIER = 100;
4747

48-
4948
/**
5049
* Class for describing the logic of payment routes
5150
*/
@@ -89,7 +88,6 @@ export default class CloudPaymentsWebhooks {
8988
return router;
9089
}
9190

92-
9391
/**
9492
* Generates invoice id for payment
9593
*

src/resolvers/billingNew.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default {
113113

114114
// Calculate next payment date
115115
const lastChargeDate = workspace.lastChargeDate ? new Date(workspace.lastChargeDate) : now;
116-
let nextPaymentDate = isCardLinkOperation ? new Date(lastChargeDate) : new Date(now);
116+
const nextPaymentDate = isCardLinkOperation ? new Date(lastChargeDate) : new Date(now);
117117

118118
if (workspace.isDebug) {
119119
nextPaymentDate.setDate(nextPaymentDate.getDate() + 1);
@@ -123,18 +123,18 @@ export default {
123123

124124
const checksumData = isCardLinkOperation
125125
? {
126-
isCardLinkOperation: true as const,
127-
workspaceId: workspace._id.toString(),
128-
userId: user.id,
129-
nextPaymentDate: nextPaymentDate.toISOString(),
130-
}
126+
isCardLinkOperation: true as const,
127+
workspaceId: workspace._id.toString(),
128+
userId: user.id,
129+
nextPaymentDate: nextPaymentDate.toISOString(),
130+
}
131131
: {
132-
workspaceId: workspace._id.toString(),
133-
userId: user.id,
134-
tariffPlanId: plan._id.toString(),
135-
shouldSaveCard: Boolean(shouldSaveCard),
136-
nextPaymentDate: nextPaymentDate.toISOString(),
137-
};
132+
workspaceId: workspace._id.toString(),
133+
userId: user.id,
134+
tariffPlanId: plan._id.toString(),
135+
shouldSaveCard: Boolean(shouldSaveCard),
136+
nextPaymentDate: nextPaymentDate.toISOString(),
137+
};
138138

139139
const checksum = await checksumService.generateChecksum(checksumData);
140140

0 commit comments

Comments
 (0)