Add checkin notifications for starting lectures
This commit is contained in:
@@ -13,6 +13,8 @@ module LectureAttendanceManager
|
||||
|
||||
config.active_job.queue_adapter = :sidekiq
|
||||
|
||||
config.hosts << "lectures.joshuacoles.me"
|
||||
|
||||
# Configuration for the application, engines, and railties goes here.
|
||||
#
|
||||
# These settings can be overridden in specific environments using the files
|
||||
|
||||
@@ -13,4 +13,6 @@ Rails.application.routes.draw do
|
||||
post '/lectures/:id/start', to: 'lecture#start', as: :lectures_start
|
||||
post '/lectures/:id/start_preparation', to: 'lecture#start_preparation', as: :lecture_start_preparation
|
||||
post '/lectures/:id/start_review', to: 'lecture#start_review', as: :lecture_start_review
|
||||
|
||||
post '/lectures/:id/checkin', to: 'lecture#checkin', as: :lecture_checkin
|
||||
end
|
||||
|
||||
@@ -11,3 +11,7 @@ production:
|
||||
# These are the cron jobs
|
||||
:scheduler:
|
||||
:schedule:
|
||||
:lecture_checkin_job:
|
||||
cron: '15 * * * 1,2,3,4,5'
|
||||
class: 'LectureCheckinJob'
|
||||
queue: default
|
||||
|
||||
Reference in New Issue
Block a user