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 `$group` stage on `userId` and `month` fields, returning sorted results by month descending. This enables the dashboard to display per-user export volume trends over time.
This commit is contained in:
bot 2024-11-27 16:03:31 +00:00
parent 45f315b443
commit bc8624c74c
4 changed files with 0 additions and 0 deletions

Binary file not shown.

Binary file not shown.