From b8dfcf326f237dfbad77886b694f0fd6f3ed0087 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sun, 27 Oct 2024 19:01:12 +0100 Subject: [PATCH] Implement the actual status update --- app/controllers/guests_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/guests_controller.rb b/app/controllers/guests_controller.rb index 53ef565..76bfda4 100644 --- a/app/controllers/guests_controller.rb +++ b/app/controllers/guests_controller.rb @@ -76,6 +76,7 @@ class GuestsController < ApplicationController end def bulk_update + Guest.where(id: params[:guest_ids]).update!(params.require(:properties).permit(:status)) render json: {}, status: :ok end