Fixed display of challenges by date
This commit is contained in:
@@ -39,6 +39,6 @@ public class GetAllUserChallengesEndpoint(UsersRepository usersRepository, UserS
|
||||
user.UserGroups.Select(x => mapper.Map<GetUserChallengeDto>(x.Group))
|
||||
);
|
||||
|
||||
await Send.OkAsync(challenges, ct);
|
||||
await Send.OkAsync(challenges.OrderByDescending(x => x.ChallengeStartDate).ToList(), ct);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user