Skip to content

Commit d490dd2

Browse files
fix: healthcheck error
1 parent e3cbb48 commit d490dd2

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

merkle-tree/src/middleware/assign-db-connection.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@ export default async function(req, res, next) {
1414
2,
1515
)}`,
1616
);
17-
17+
if (req.path === '/healthcheck') {
18+
return next();
19+
}
1820
try {
1921
const contractId = req.body.contractId;
20-
logger.silly(`before request.body.contractName`);
2122
let contractName = req.body.contractName || req.query.contractName;
2223
if (contractName === undefined) {
23-
// const contractNameTest = req.body[0].contractName;
24-
logger.silly(`before setting no-contract-name`);
25-
const contractNameTest = 'no-contract-name'
24+
const contractNameTest = req.body[0].contractName;
2625
if (contractNameTest === undefined) {
2726
throw new Error('No contractName key provided in req.body.');
2827
} else {

0 commit comments

Comments
 (0)