mirror of
https://github.com/standardnotes/server
synced 2026-10-14 03:13:45 -04:00
fix(api-gateway): period types on analytics report
This commit is contained in:
@@ -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),
|
||||
})
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@ export interface DailyAnalyticsReportGeneratedEventPayload {
|
||||
name: string
|
||||
totalValue: number
|
||||
average: number
|
||||
periodKey: string
|
||||
period: number
|
||||
}>
|
||||
activityStatisticsOverTime: Array<{
|
||||
name: string
|
||||
|
||||
Reference in New Issue
Block a user