File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ const (
3434 NewExamResultsHook = "newExamResultsHook"
3535 MovieType = "movie"
3636 FeedbackEmail = "feedbackEmail"
37+ AlarmType = "alarm"
3738
38- /* MensaType = "mensa"
39- AlarmType = "alarm" */
39+ // MensaType = "mensa"
4040)
4141
4242func New (db * gorm.DB ) * CronService {
@@ -66,6 +66,7 @@ func (c *CronService) Run() error {
6666 NewExamResultsHook ,
6767 MovieType ,
6868 FeedbackEmail ,
69+ AlarmType ,
6970 ).
7071 Scan (& res )
7172
@@ -111,6 +112,8 @@ func (c *CronService) Run() error {
111112 g .Go (func () error { return c .iosActivityReset () })
112113 case FeedbackEmail :
113114 g .Go (func () error { return c .feedbackEmailCron () })
115+ case AlarmType :
116+ g .Go (func () error { return c .alarmCron () })
114117 }
115118 }
116119
You can’t perform that action at this time.
0 commit comments