diff --git a/src/lib/features/traffic-data-usage/traffic-data-usage-store.ts b/src/lib/features/traffic-data-usage/traffic-data-usage-store.ts index 23cdb488b4..f27c961f4d 100644 --- a/src/lib/features/traffic-data-usage/traffic-data-usage-store.ts +++ b/src/lib/features/traffic-data-usage/traffic-data-usage-store.ts @@ -96,7 +96,7 @@ export class TrafficDataUsageStore implements ITrafficDataUsageStore { }); } - async getDailyTrafficDataUsageForPeriod( + async getDailyTrafficDataForPeriod( from: Date, to: Date, ): Promise { @@ -107,7 +107,7 @@ export class TrafficDataUsageStore implements ITrafficDataUsageStore { return rows.map(mapRow); } - async getMonthlyTrafficDataUsageForPeriod( + async getMonthlyTrafficDataForPeriod( from: Date, to: Date, ): Promise { @@ -143,7 +143,7 @@ export class TrafficDataUsageStore implements ITrafficDataUsageStore { period: string, ): Promise { const month = new Date(period); - return this.getDailyTrafficDataUsageForPeriod( + return this.getDailyTrafficDataForPeriod( startOfMonth(month), endOfMonth(month), ); @@ -155,6 +155,6 @@ export class TrafficDataUsageStore implements ITrafficDataUsageStore { ): Promise { const to = endOfMonth(new Date()); const from = startOfMonth(subMonths(to, monthsBack)); - return this.getMonthlyTrafficDataUsageForPeriod(from, to); + return this.getMonthlyTrafficDataForPeriod(from, to); } }