fix rubocop violations 👮
This commit is contained in:
parent
1b9b6974fd
commit
08c513b6d9
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue