diff --git a/src/lib/features/traffic-data-usage/fake-traffic-data-usage-store.ts b/src/lib/features/traffic-data-usage/fake-traffic-data-usage-store.ts index 4fd4606a78..fb05afaed9 100644 --- a/src/lib/features/traffic-data-usage/fake-traffic-data-usage-store.ts +++ b/src/lib/features/traffic-data-usage/fake-traffic-data-usage-store.ts @@ -92,7 +92,7 @@ export class FakeTrafficDataUsageStore implements ITrafficDataUsageStore { return Object.values(data); } - async getDailyTrafficUsageDataForPeriod( + async getDailyTrafficDataUsageForPeriod( from: Date, to: Date, ): Promise { @@ -101,7 +101,7 @@ export class FakeTrafficDataUsageStore implements ITrafficDataUsageStore { ); } - async getMonthlyTrafficUsageDataForPeriod( + async getMonthlyTrafficDataUsageForPeriod( from: Date, to: Date, ): Promise { diff --git a/src/lib/features/traffic-data-usage/traffic-data-usage-store-type.ts b/src/lib/features/traffic-data-usage/traffic-data-usage-store-type.ts index b695c9c771..313f5c1dfd 100644 --- a/src/lib/features/traffic-data-usage/traffic-data-usage-store-type.ts +++ b/src/lib/features/traffic-data-usage/traffic-data-usage-store-type.ts @@ -27,11 +27,11 @@ export interface ITrafficDataUsageStore getTrafficDataForMonthRange( monthsBack: number, ): Promise; - getDailyTrafficUsageDataForPeriod( + getDailyTrafficDataUsageForPeriod( from: Date, to: Date, ): Promise; - getMonthlyTrafficUsageDataForPeriod( + getMonthlyTrafficDataUsageForPeriod( from: Date, to: Date, ): Promise; 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 c32f3bdf99..23cdb488b4 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 getDailyTrafficUsageDataForPeriod( + async getDailyTrafficDataUsageForPeriod( from: Date, to: Date, ): Promise { @@ -107,7 +107,7 @@ export class TrafficDataUsageStore implements ITrafficDataUsageStore { return rows.map(mapRow); } - async getMonthlyTrafficUsageDataForPeriod( + async getMonthlyTrafficDataUsageForPeriod( from: Date, to: Date, ): Promise { @@ -143,7 +143,7 @@ export class TrafficDataUsageStore implements ITrafficDataUsageStore { period: string, ): Promise { const month = new Date(period); - return this.getDailyTrafficUsageDataForPeriod( + return this.getDailyTrafficDataUsageForPeriod( 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.getMonthlyTrafficUsageDataForPeriod(from, to); + return this.getMonthlyTrafficDataUsageForPeriod(from, to); } }