fix(api-gateway): period types on analytics report

This commit is contained in:
Karol Sójko
2022-09-06 12:28:48 +02:00
parent d149f46cf6
commit f94c8fc26e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ const requestReport = async (
for (const period of [Period.Yesterday, Period.ThisMonth]) {
statisticMeasures.push({
name: statisticMeasureName,
periodKey: period,
period,
totalValue: await statisticsStore.getMeasureTotal(statisticMeasureName, period),
average: await statisticsStore.getMeasureAverage(statisticMeasureName, period),
})
@@ -16,7 +16,7 @@ export interface DailyAnalyticsReportGeneratedEventPayload {
name: string
totalValue: number
average: number
periodKey: string
period: number
}>
activityStatisticsOverTime: Array<{
name: string