remove redundent association keys

In the api_users_controller#profile_show remove :genres, :instruments
keys from the association includes
This commit is contained in:
Nuwan 2024-09-13 08:02:34 +05:30
parent fa35930c75
commit d976cdf866
1 changed files with 1 additions and 2 deletions

View File

@ -95,8 +95,7 @@ class ApiUsersController < ApiController
@profile = User.includes([{musician_instruments: :instrument},
{band_musicians: :user},
{genre_players: :genre},
:bands, :instruments, :genres,
:online_presences, :performance_samples])
:bands, :online_presences, :performance_samples])
.find(params[:id])
@show_teacher_profile = params[:show_teacher]