fixed error with foreign key in post

This commit is contained in:
2026-05-14 14:22:08 +01:00
parent 80db4dd531
commit b3ee30a9cc
@@ -85,8 +85,9 @@ public class PatchProofEndpoint(
Post post = new() Post post = new()
{ {
CreationDate = DateTime.Now, CreationDate = DateTime.Now,
Libelle = "test pour le moment", Libelle = randomChallenge.Label,
UserId = userId UserId = userId,
RandomChallengeId = req.RandomChallengeId,
}; };
await postsRepository.AddAsync(post, ct); await postsRepository.AddAsync(post, ct);