From 5dfaf9aab09ee26c2699a25a1e93fe8358222d89 Mon Sep 17 00:00:00 2001 From: Hammad-Mubeen Date: Tue, 28 Dec 2021 00:47:29 +0500 Subject: [PATCH] minor changes --- routes/tokenslist.js | 4 +++- test.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/routes/tokenslist.js b/routes/tokenslist.js index 7d01d10d..6c23950c 100644 --- a/routes/tokenslist.js +++ b/routes/tokenslist.js @@ -45,8 +45,10 @@ router.route("/tokensList").get(async function (req, res, next) { message: "There is no data in tokensList Collection.", }); } + else{ + return res.send(tokensList.data); + } - return res.send(tokensList.data); } catch (error) { console.log("error (try-catch) : " + error); diff --git a/test.js b/test.js index 4293e658..299da695 100644 --- a/test.js +++ b/test.js @@ -8,5 +8,5 @@ // var date = new Date("2021-12-14T18:42:24.445Z"); // var seconds = date.getTime(); // console.log("time: ",seconds); -let contractHash="F41eea03821F59de6a3d48161dA1ba267Fc4048B7d6761Cb18E80C5C68049388".toLowerCase(); +let contractHash="Feb336a5487f160DA388d878296C9043Ab29b50daE9756675FD332408275bBeB".toLowerCase(); console.log(contractHash); \ No newline at end of file