diff --git a/BeReadyBackend/Endpoints/RandomChallenges/PatchProofEndpoint.cs b/BeReadyBackend/Endpoints/RandomChallenges/PatchProofEndpoint.cs index e0b627e..fa7b18d 100644 --- a/BeReadyBackend/Endpoints/RandomChallenges/PatchProofEndpoint.cs +++ b/BeReadyBackend/Endpoints/RandomChallenges/PatchProofEndpoint.cs @@ -85,8 +85,9 @@ public class PatchProofEndpoint( Post post = new() { CreationDate = DateTime.Now, - Libelle = "test pour le moment", - UserId = userId + Libelle = randomChallenge.Label, + UserId = userId, + RandomChallengeId = req.RandomChallengeId, }; await postsRepository.AddAsync(post, ct);