fix: tournamnet: can join tournament

This commit is contained in:
2024-03-11 10:36:34 +01:00
parent e8921939a0
commit 175169add0
4 changed files with 10 additions and 6 deletions

View File

@ -17,12 +17,12 @@ class Tourmanents
/**
*
* @param {Number} id
* @returns {?Promise<Tournament>}
* @returns {Promise<Tournament>}
*/
async getTournament(id)
{
let tournament = new Tourmanent(this.client);
if (await tournament.init(id))
let tournament = new Tourmanent(this.client, id);
if (await tournament.init())
return null;
return tournament;
}