fix: the announcement count for user dashboard

This commit is contained in:
mahyargdz
2025-03-11 14:22:19 +03:30
parent 6eea07729b
commit cba2d21d94
4 changed files with 20 additions and 5 deletions
@@ -505,7 +505,7 @@ export class InvoicesService {
let delayMs: number;
switch (recurringPeriod) {
case RecurringPeriodEnum.WEEKLY:
delayMs = dayjs().add(1, "week").subtract(7, "days").diff(dayjs());
delayMs = dayjs().add(1, "week").subtract(INVOICE.DAYS_BEFORE_OVERDUE, "days").diff(dayjs());
break;
case RecurringPeriodEnum.MONTHLY:
delayMs = dayjs().add(1, "month").subtract(7, "days").diff(dayjs());