Merge pull request 'Fix undefined method' (#91) from fix/undefined-method into main
Some checks failed
Check usage of free licenses / build-static-assets (push) Successful in 1m22s
Run unit tests / unit_tests (push) Failing after 1m51s
Build Nginx-based docker image / build-static-assets (push) Has been cancelled

Reviewed-on: #91
This commit is contained in:
bustikiller 2024-11-03 13:00:11 +00:00
commit 0d122b39d3

View File

@ -2,7 +2,13 @@
module Guests
class UpdateUseCase
private attr_reader :guest_ids, :params
def initialize(guest_ids:, params:)
@guest_ids = guest_ids
@params = params
end
def call
Guest.where(id: guest_ids).update!(params)
# TODO: Not all status transitions may require a table re-arrangement