diff --git a/app/controllers/api/v1/project_preferences_controller.rb b/app/controllers/api/v1/project_preferences_controller.rb index 2f6497833..b788149de 100644 --- a/app/controllers/api/v1/project_preferences_controller.rb +++ b/app/controllers/api/v1/project_preferences_controller.rb @@ -54,6 +54,7 @@ def render_json_response preferences = @project.user_project_preference.where.not(email_communication: nil) preferences = params[:user_id].present? ? preferences.where(user_id: params[:user_id]) : preferences end + render( status: :ok, json_api: serializer.resource({}, preferences, context)