From 0f32989a1d780efa74e6e7a0eabc98f3d96261e1 Mon Sep 17 00:00:00 2001 From: Wedge Date: Sun, 12 Jun 2016 01:45:31 +0300 Subject: [PATCH] Fix error --- app/jobs/update_statistics_job.rb | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/jobs/update_statistics_job.rb b/app/jobs/update_statistics_job.rb index 8fef9de69..7fd28a685 100644 --- a/app/jobs/update_statistics_job.rb +++ b/app/jobs/update_statistics_job.rb @@ -3,12 +3,13 @@ class UpdateStatisticsJob < BaseActiveRecordJob sidekiq_options :queue => :middle def perform_with_ar_connection(args = {}) - defaults = {activity_at: nil, - user_id: nil, - project_id: nil, - key: nil, - counter: 1} + defaults = {'activity_at' => nil, + 'user_id' => nil, + 'project_id' => nil, + 'key' => nil, + 'counter' => 1} options = defaults.merge(args) + puts options statsd_increment(activity_at: options['activity_at'], user_id: options['user_id'], project_id: options['project_id'], key: options['key'], counter: options['counter']) end