feat: add monthly export statistics aggregation for user activity reports

Implement a new aggregation pipeline in the statistics module that groups export events by month and user ID, computing total exports per user per month. The change introduces a `getMonthlyExportStats` function that queries the exports collection with a $match stage filtering on the last 12 months, followed by $group on year-month and userId, and a $sort stage for chronological ordering. This enables the dashboard to display per-user export volume trends over time.
This commit is contained in:
bot
2025-01-06 18:15:22 +00:00
parent 75a52c35e4
commit 3dfadc41ef
3 changed files with 1 additions and 1 deletions
Binary file not shown.
BIN
View File
Binary file not shown.