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 (
34
34
NewExamResultsHook = "newExamResultsHook"
35
35
MovieType = "movie"
36
36
FeedbackEmail = "feedbackEmail"
37
+ AlarmType = "alarm"
37
38
38
- /* MensaType = "mensa"
39
- AlarmType = "alarm" */
39
+ // MensaType = "mensa"
40
40
)
41
41
42
42
func New (db * gorm.DB ) * CronService {
@@ -66,6 +66,7 @@ func (c *CronService) Run() error {
66
66
NewExamResultsHook ,
67
67
MovieType ,
68
68
FeedbackEmail ,
69
+ AlarmType ,
69
70
).
70
71
Scan (& res )
71
72
@@ -111,6 +112,8 @@ func (c *CronService) Run() error {
111
112
g .Go (func () error { return c .iosActivityReset () })
112
113
case FeedbackEmail :
113
114
g .Go (func () error { return c .feedbackEmailCron () })
115
+ case AlarmType :
116
+ g .Go (func () error { return c .alarmCron () })
114
117
}
115
118
}
116
119
You can’t perform that action at this time.
0 commit comments