fix: the announcement count for user dashboard
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user