Cleaned code

This commit is contained in:
2026-05-14 18:49:35 +01:00
parent e6d47a4005
commit 75876b3ab3
4 changed files with 5 additions and 5 deletions
@@ -6,7 +6,7 @@ using FastEndpoints;
namespace BeReadyBackend.Endpoints.Friends; namespace BeReadyBackend.Endpoints.Friends;
public class GetAllFriendRequestsEndpoint(UserFriendsRepository userFriendsRepository, UserService userService): EndpointWithoutRequest<List<GetFriendRequestDto>> public class GetAllFriendRequestsEndpoint(UserFriendsRepository userFriendsRepository, UserService userService) : EndpointWithoutRequest<List<GetFriendRequestDto>>
{ {
public override void Configure() public override void Configure()
{ {
@@ -92,7 +92,7 @@ public class PatchProofEndpoint(
CreationDate = DateTime.Now, CreationDate = DateTime.Now,
Libelle = randomChallenge.Label, Libelle = randomChallenge.Label,
UserId = userId, UserId = userId,
RandomChallengeId = req.RandomChallengeId, RandomChallengeId = req.RandomChallengeId,
}; };
await postsRepository.AddAsync(post, ct); await postsRepository.AddAsync(post, ct);
@@ -129,7 +129,7 @@ public class AchievementService(
switch (achievementsCounter) switch (achievementsCounter)
{ {
case 5: case 5:
await Unlock(userId,22); await Unlock(userId, 22);
break; break;
case 20: case 20:
await Unlock(userId, 23); await Unlock(userId, 23);