fix: return 404 when tournament not found
This commit is contained in:
@ -17,7 +17,8 @@ class Tourmanents
|
||||
async getTournament(id)
|
||||
{
|
||||
let tournament = new Tourmanent(this.client);
|
||||
await tournament.init(id);
|
||||
if (await tournament.init(id))
|
||||
return null;
|
||||
return tournament;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user