Skip to content

Commit 8f997e6

Browse files
author
Gerad Suyderhoud
committed
only notify during voting
1 parent d6d618c commit 8f997e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

controllers/notifications.coffee

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ message = ->
1616

1717
# notify teams when a judge visits
1818
app.post '/notify', (req, res, next) ->
19+
# only notify during voting
20+
return res.send(200) unless app.enabled('voting')
21+
1922
# only notify when judges click through
2023
return res.send(200) unless req.user?.judge
2124

0 commit comments

Comments
 (0)