change channel to cronဓ

This commit is contained in:
phyusin
2017-12-14 17:39:39 +06:30
parent 5798a612d7
commit 332f0235a0
3 changed files with 8 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
class CheckinJob < ApplicationJob
queue_as :default
def perform()
def self.perform()
table = DiningFacility.get_checkin_booking
if table.length > 0
ActionCable.server.broadcast "checkin_channel",table: table