From 57b4fcb74b833516a455745d607e7eaa6a3aec21 Mon Sep 17 00:00:00 2001 From: Thomas Grenfell Smith Date: Tue, 29 Apr 2014 15:11:23 -0400 Subject: [PATCH] Laughable attempt to handle the error --- app/routes/badge-instances.js | 3 +++ 1 file changed, 3 insertions(+) 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')