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

(bug) unable to build stats

NoMethodError: undefined method `date' for #<Hash>
app/services/statistics/builders/projects_builder_service.rb:12:in `block in build'
This commit is contained in:
Sylvain 2022-09-05 16:29:01 +02:00
parent 9a9aaf6889
commit b7af29c1a8

View File

@ -9,7 +9,7 @@ class Statistics::Builders::ProjectsBuilderService
def build(options = default_options) def build(options = default_options)
# project list # project list
Statistics::FetcherService.projects_list(options).each do |p| Statistics::FetcherService.projects_list(options).each do |p|
Stats::Project.create({ date: format_date(p.date), Stats::Project.create({ date: format_date(p[:date]),
type: 'project', type: 'project',
subType: 'published', subType: 'published',
stat: 1 }.merge(user_info_stat(p)).merge(project_info_stat(p))) stat: 1 }.merge(user_info_stat(p)).merge(project_info_stat(p)))