Feature: Allow changing the status of guests in bulk #71

Merged
bustikiller merged 2 commits from bulk-status-changes into main 2024-10-27 19:45:53 +00:00
Showing only changes of commit b8dfcf326f - Show all commits

View File

@ -76,6 +76,7 @@ class GuestsController < ApplicationController
end end
def bulk_update def bulk_update
Guest.where(id: params[:guest_ids]).update!(params.require(:properties).permit(:status))
render json: {}, status: :ok render json: {}, status: :ok
end end