add channel for checkin process
This commit is contained in:
@@ -2,6 +2,8 @@ class BaseOrigamiController < ActionController::Base
|
||||
include LoginVerification
|
||||
layout "origami"
|
||||
|
||||
before_action :checkin_process
|
||||
|
||||
#before_action :check_installation
|
||||
protect_from_forgery with: :exception
|
||||
rescue_from CanCan::AccessDenied do |exception|
|
||||
@@ -13,4 +15,7 @@ class BaseOrigamiController < ActionController::Base
|
||||
@current_user ||= Employee.find_by_token_session(session[:session_token]) if session[:session_token]
|
||||
end
|
||||
|
||||
def checkin_process
|
||||
CheckinJob.set(wait: 30.seconds).perform_later()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user