Skip to content

Commit

Permalink
fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTG committed Jan 12, 2025
1 parent acc6306 commit 8f408b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/user_submissions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def create

def list_within_range
user_submissions = UserSubmission.where.not(lat: nil)
.where(submission_type: %w[new_lmx remove_machine new_condition new_msx confirm_location],created_at: '2019-05-03T07:00:00.00-07:00'..Date.today.end_of_day)
.near([params[:lat], params[:lon]], 100, order: false).limit(200)
.where(submission_type: %w[new_lmx remove_machine new_condition new_msx confirm_location], created_at: '2019-05-03T07:00:00.00-07:00'..Date.today.end_of_day)
.near([params[:lat], params[:lon]], 100, order: false).limit(200)
sorted_submissions = user_submissions.order('created_at DESC')
render partial: 'maps/nearby_activity', locals: { sorted_submissions: sorted_submissions }
end
Expand Down

0 comments on commit 8f408b3

Please sign in to comment.