mirror of
https://github.com/standardnotes/server
synced 2026-09-21 06:13:09 -04:00
fix(analytics): add debug logs for the report
This commit is contained in:
@@ -29,6 +29,7 @@ const requestReport = async (
|
||||
calculateMonthlyRecurringRevenue: CalculateMonthlyRecurringRevenue,
|
||||
timer: TimerInterface,
|
||||
adminEmails: string[],
|
||||
logger: Logger,
|
||||
): Promise<void> => {
|
||||
await calculateMonthlyRecurringRevenue.execute({})
|
||||
|
||||
@@ -133,6 +134,7 @@ const requestReport = async (
|
||||
counts: await statisticsStore.calculateTotalCountOverPeriod(statisticName, Period.Last30DaysIncludingToday),
|
||||
})
|
||||
}
|
||||
logger.info('Calculated thirty days statistics: %O', statisticsOverTime)
|
||||
|
||||
const monthlyStatisticsNames = [StatisticMeasureName.NAMES.MRR]
|
||||
for (const statisticName of monthlyStatisticsNames) {
|
||||
@@ -282,6 +284,7 @@ void container.load().then((container) => {
|
||||
calculateMonthlyRecurringRevenue,
|
||||
timer,
|
||||
adminEmails,
|
||||
logger,
|
||||
),
|
||||
)
|
||||
.then(() => {
|
||||
|
||||
Reference in New Issue
Block a user