fix bad txid

This commit is contained in:
tenthirtyone 2017-08-15 10:59:40 -04:00
parent bf26304746
commit 6659148d4b

View File

@ -62,6 +62,14 @@ module.exports = function transactionAPI(router) {
} catch (e) {
logger.log('error',
`${err}`);
res.status(501).send();
return;
}
if (!body || !body.hash) {
logger.log('error',
'No results found');
res.status(501).send();
return;
}
res.send({
txid: body.hash,