fixes
This commit is contained in:
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"})}
|
if(!id){response.status(400).json({error:"id is required"})}
|
||||||
|
|
||||||
try{
|
try{
|
||||||
const tx = await contract.getTournamentParticipentsCount(address);
|
const tx = await contract.getTournamentParticipentsCount(id);
|
||||||
response.json({ count: tx.toString() });
|
response.json({ count: tx.toString() });
|
||||||
}catch(err){
|
}catch(err){
|
||||||
console.error("Error reading participents for tourney:", err);
|
console.error("Error reading participents for tourney:", err);
|
||||||
|
|||||||
Reference in New Issue
Block a user