Open VEXI19 opened 4 months ago
What does it mean to achieve the goal of a 'Tournament podium finish'? What criteria must be met for that to happen?
What does it mean to achieve the goal of a 'Tournament podium finish'? What criteria must be met for that to happen?
This information will be available in document of given tournament. Not yet implemented, i will let you know when this issue will be ready to go
Create middleware inside challengeComplete.js file, which is going to check if there is a challenge with goal "Tournament podium finish" and if so create mechanism for checking if that challenge was completed.
Also you need to update challenges list inside user scheme. Changing challenge status to completed and creating new challenge with function drawChallenges that will be the same difficulty as the one completed.
In the end you need to place that middleware in parts of pipeline where challenge with goal "Tournament podium finish" can be completed. Ex. "Completed workouts" goal can be met after ending a workout, so you should add that middleware in routes file before endWorkout.