fixes
This commit is contained in:
parent
13472a8d21
commit
9b66a61eea
2
index.js
2
index.js
|
|
@ -157,7 +157,7 @@ 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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user