Commit 08c513b6 authored by Mike Greiling's avatar Mike Greiling

fix rubocop violations 👮

parent 1b9b6974
...@@ -70,10 +70,10 @@ module Gitlab ...@@ -70,10 +70,10 @@ module Gitlab
.and(t[:author_id].eq(contributor.id)) .and(t[:author_id].eq(contributor.id))
date_interval = if Gitlab::Database.postgresql? date_interval = if Gitlab::Database.postgresql?
"INTERVAL '#{Time.zone.now.utc_offset} seconds'" "INTERVAL '#{Time.zone.now.utc_offset} seconds'"
else else
"INTERVAL #{Time.zone.now.utc_offset} SECOND" "INTERVAL #{Time.zone.now.utc_offset} SECOND"
end end
Event.reorder(nil) Event.reorder(nil)
.select(t[:project_id], t[:target_type], t[:action], "date(created_at + #{date_interval}) AS date", 'count(id) as total_amount') .select(t[:project_id], t[:target_type], t[:action], "date(created_at + #{date_interval}) AS date", 'count(id) as total_amount')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment