fix bad txid
This commit is contained in:
parent
bf26304746
commit
6659148d4b
@ -62,6 +62,14 @@ module.exports = function transactionAPI(router) {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.log('error',
|
logger.log('error',
|
||||||
`${err}`);
|
`${err}`);
|
||||||
|
res.status(501).send();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!body || !body.hash) {
|
||||||
|
logger.log('error',
|
||||||
|
'No results found');
|
||||||
|
res.status(501).send();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
res.send({
|
res.send({
|
||||||
txid: body.hash,
|
txid: body.hash,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user