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 oneSecond = 1000
makeRequest = (opts, callback)-> makeRequest = (opts, callback)->
if !settings.apis.notifications.url? if !settings.apis.notifications?.url?
return callback() return callback()
else else
request(opts, callback) request(opts, callback)