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"})}
|
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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user