1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +01:00

(bug) unable to generate stats

This commit is contained in:
Du Peng 2023-09-27 12:39:04 +02:00
parent fa15d83820
commit fc1689cf2e
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Changelog Fab-manager
- Fix a bug: unable to generate statistic
- [TODO DEPLOY] `rails fablab:es:build_stats`
- [TODO DEPLOY] `rails fablab:maintenance:regenerate_statistics[2023,6]`
## v6.1.0 2023 September 25
- improves api/notification controller to avoid failing when there is a notification with wrong notification_type in db

View File

@ -17,7 +17,7 @@ class Statistics::BuilderService
private
def default_options
yesterday = Time.current
yesterday = 1.day.ago
{
start_date: yesterday.beginning_of_day,
end_date: yesterday.end_of_day