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:
parent
9a9aaf6889
commit
b7af29c1a8
@ -9,7 +9,7 @@ class Statistics::Builders::ProjectsBuilderService
|
||||
def build(options = default_options)
|
||||
# project list
|
||||
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',
|
||||
subType: 'published',
|
||||
stat: 1 }.merge(user_info_stat(p)).merge(project_info_stat(p)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user