From 9d0f9647e9cfd14374541eb0ef207d3a222c209f Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Fri, 24 Jan 2025 15:39:01 +0100 Subject: [PATCH] chore(1-3293): fix some method impls --- .../traffic-data-usage/traffic-data-usage-store.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } }