Skip to content

Commit

Permalink
couple of tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonSharratt committed Feb 5, 2020
1 parent 40130e5 commit b17e90f
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions microservices/requestApi/routes/v2/routes/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ var getRouter = function(db){
res.json({error: formErr});
return;
}
res.json(JSON.parse(formRes));

var r = formRes
try{
r = JSON.parse(formRes);
}catch(ex){}

res.json(r);
});
});

Expand Down Expand Up @@ -492,7 +498,12 @@ var getRouter = function(db){
res.json({error: formErr});
return;
}
res.json(JSON.parse(formRes));
var r = formRes
try{
r = JSON.parse(formRes);
}catch(ex){}

res.json(r);
});
});

Expand All @@ -511,7 +522,12 @@ var getRouter = function(db){
res.json({error: formErr});
return;
}
res.json(JSON.parse(formRes));
var r = formRes
try{
r = JSON.parse(formRes);
}catch(ex){}

res.json(r);
});
});

Expand Down

0 comments on commit b17e90f

Please sign in to comment.