Skip to content

Commit

Permalink
get tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
michelson committed Oct 17, 2023
1 parent 1d0293b commit edee15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def get_meta_tags

def get_tracks
# @collection = @user.tracks.page(params[:page]).per(2)
@collection = if current_user
@collection = if current_user && @user.id == current_user&.id
User.track_preloaded_by_user(current_user&.id)
.where(user_id: @user.id)
.with_attached_cover
Expand Down

0 comments on commit edee15c

Please sign in to comment.