Skip to content

Commit

Permalink
Fix: Move to else
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi authored Apr 6, 2024
1 parent fbe7cde commit 469cc14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/app/controllers/sonolus/levels_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,6 @@ def list
)
end
case params[:type]
when "quick", "advanced"
charts = charts.where(visibility: :public)
when "testing"
require_login!
alt_users = User.where(owner_id: current_user.id)
Expand All @@ -245,6 +243,8 @@ def list
.select(:chart_id)
.order(created_at: :desc)
charts = charts.where(id: likes.map(&:chart_id))
else
charts = charts.where(visibility: :public)
end
if params[:q_id].present?
charts =
Expand Down

0 comments on commit 469cc14

Please sign in to comment.