From 9b66a61eea877123d792e22e40ac1ceb602d9430 Mon Sep 17 00:00:00 2001 From: "Sewmina (server)" Date: Wed, 4 Sep 2024 12:55:11 +0800 Subject: [PATCH] fixes --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d70e466..9fab3d0 100644 --- a/index.js +++ b/index.js @@ -157,10 +157,10 @@ app.get("/getTournamentParticipentsCount", async(request,response)=>{ if(!id){response.status(400).json({error:"id is required"})} try{ - const tx = await contract.getTournamentParticipentsCount(address); + const tx = await contract.getTournamentParticipentsCount(id); response.json({ count: tx.toString() }); }catch(err){ console.error("Error reading participents for tourney:", err); response.status(500).json({ error: err.message }); } -}) \ No newline at end of file +})