Skip to content

Commit

Permalink
fix: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
wenxing-wang-ey committed Jan 15, 2025
1 parent 39b79c3 commit e3cbb48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions merkle-tree/src/middleware/assign-db-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ export default async function(req, res, next) {

try {
const contractId = req.body.contractId;
logger.silly(`before request.body.contractName`);
let contractName = req.body.contractName || req.query.contractName;
if (contractName === undefined) {
// const contractNameTest = req.body[0].contractName;
logger.silly(`before setting no-contract-name`);
const contractNameTest = 'no-contract-name'
if (contractNameTest === undefined) {
throw new Error('No contractName key provided in req.body.');
Expand Down

0 comments on commit e3cbb48

Please sign in to comment.