Add checkin notifications for starting lectures

This commit is contained in:
2023-10-05 09:59:08 +01:00
parent 9e8cf93b1a
commit 04caed2783
7 changed files with 46 additions and 1 deletions
+2
View File
@@ -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
+2
View File
@@ -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
+4
View File
@@ -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