From: Laurence Maultsby Date: Wed, 10 May 2017 12:53:29 +0000 (-0400) Subject: Fixed api error handler for nsr delete X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=2175b5914c0f58dc1c681ba53734eb92ff1ff138;p=osm%2FUI.git Fixed api error handler for nsr delete Signed-off-by: Laurence Maultsby --- diff --git a/skyquake/plugins/launchpad/routes.js b/skyquake/plugins/launchpad/routes.js index f9d6ce733..06ee5da79 100644 --- a/skyquake/plugins/launchpad/routes.js +++ b/skyquake/plugins/launchpad/routes.js @@ -1,5 +1,5 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -41,7 +41,7 @@ app.get('/api/nsr', cors(), function(req, res) { launchpadAPI['nsr'].delete(req).then(function(response) { utils.sendSuccessResponse(response, res); }, function(error) { - sendErrorResponse(error, res); + utils.sendErrorResponse(error, res); }); }); app.post('/api/nsr', cors(), function(req, res) {