Return only the top 3 arrangements
All checks were successful
Add copyright notice / copyright_notice (pull_request) Successful in 1m9s
Run unit tests / unit_tests (pull_request) Successful in 2m29s
Build Nginx-based docker image / build-static-assets (pull_request) Successful in 28m27s

This commit is contained in:
Manuel Bustillo 2024-11-02 12:50:45 +01:00
parent 612cb9a789
commit d6182392f6

View File

@ -2,7 +2,7 @@
class TablesArrangementsController < ApplicationController class TablesArrangementsController < ApplicationController
def index def index
render json: TablesArrangement.all.order(discomfort: :asc).limit(10).as_json(only: %i[id discomfort]) render json: TablesArrangement.all.order(discomfort: :asc).limit(3).as_json(only: %i[id discomfort])
end end
def show def show