Skip to content

Implement middleware checking if "Create tournament" challenge was completed #50

@VEXI19

Description

@VEXI19

Create middleware inside challengeComplete.js file, which is going to check if there is a challenge with goal "Create tournament" 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 "Create tournament" 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions