Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszreszke committed Mar 21, 2024
1 parent 3917801 commit 80b8830
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ def event_in_stream?(event_id, stream)
end

def search_streams(stream)
@stream_klass.where("lower(stream) LIKE ?", "#{stream.downcase}%").order("position DESC, id DESC").limit(10).pluck(:stream).map { |name| Stream.new(name) }
@stream_klass
.where("lower(stream) LIKE ?", "#{stream.downcase}%")
.order("position DESC, id DESC")
.limit(10)
.pluck(:stream)
.map { |name| Stream.new(name) }
end

private
Expand Down

0 comments on commit 80b8830

Please sign in to comment.