add null check on notifications handler

This commit is contained in:
Henry Oswald 2016-06-24 15:11:22 +01:00
parent 8d79b37651
commit 51df3825e5

View file

@ -5,7 +5,7 @@ logger = require("logger-sharelatex")
oneSecond = 1000
makeRequest = (opts, callback)->
if !settings.apis.notifications.url?
if !settings.apis.notifications?.url?
return callback()
else
request(opts, callback)