diff --git a/app/routes/badge-instances.js b/app/routes/badge-instances.js index 09c1349..5342ded 100644 --- a/app/routes/badge-instances.js +++ b/app/routes/badge-instances.js @@ -130,6 +130,9 @@ exports = module.exports = function applyBadgeRoutes (server) { issuedOn: unixtimeFromDate(instance.issuedOn), } return Webhooks.getOne({systemId: system.id}) + }, function(error) { + res.send(409, {status: "yuck"}); + // Do more stuff here! I don't know Node at all. }).then(function (hook) { if (!hook) return log.info({code: 'WebhookNotFound', system: system}, 'Webhook not found for system')