Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions workers/paymaster/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
* Pay day is calculated by formula: last charge date + 30 days
*
* @param date - last charge date
* @param isDebug

Check warning on line 66 in workers/paymaster/src/index.ts

View workflow job for this annotation

GitHub Actions / ESlint

Missing JSDoc @param "isDebug" description
*/
private static isTimeToPay(date: Date, isDebug = false): boolean {
const expectedPayDay = new Date(date);
Expand All @@ -85,7 +85,7 @@
* Pay day is calculated by formula: last charge date + 30 days
*
* @param date - last charge date
* @param isDebug

Check warning on line 88 in workers/paymaster/src/index.ts

View workflow job for this annotation

GitHub Actions / ESlint

Missing JSDoc @param "isDebug" description
*/
private static daysBeforePayday(date: Date, isDebug = false): number {
const expectedPayDay = new Date(date);
Expand Down Expand Up @@ -235,10 +235,8 @@
if (!isTimeToPay) {
/**
* If payday is coming for the paid plans then notify admins
*
* @todo do not notify if card is linked?
*/
if (DAYS_LEFT_ALERT.includes(daysLeft) && !isFreePlan) {
if (DAYS_LEFT_ALERT.includes(daysLeft) && !isFreePlan && !workspace.subscriptionId) {
/**
* Add task for Sender worker
*/
Expand Down
Loading