add channel for checkin process
This commit is contained in:
10
app/jobs/checkin_job.rb
Normal file
10
app/jobs/checkin_job.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CheckinJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform()
|
||||
table = DiningFacility.get_checkin_booking
|
||||
ActionCable.server.broadcast "checkin_channel",table: table
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user