fix rubocop violations 👮

This commit is contained in:
Mike Greiling 2017-07-31 18:19:18 -05:00
parent 1b9b6974fd
commit 08c513b6d9
1 changed files with 4 additions and 4 deletions

View File

@ -70,10 +70,10 @@ module Gitlab
.and(t[:author_id].eq(contributor.id))
date_interval = if Gitlab::Database.postgresql?
"INTERVAL '#{Time.zone.now.utc_offset} seconds'"
else
"INTERVAL #{Time.zone.now.utc_offset} SECOND"
end
"INTERVAL '#{Time.zone.now.utc_offset} seconds'"
else
"INTERVAL #{Time.zone.now.utc_offset} SECOND"
end
Event.reorder(nil)
.select(t[:project_id], t[:target_type], t[:action], "date(created_at + #{date_interval}) AS date", 'count(id) as total_amount')