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()
{
CreationDate = DateTime.Now,
Libelle = "test pour le moment",
UserId = userId
Libelle = randomChallenge.Label,
UserId = userId,
RandomChallengeId = req.RandomChallengeId,
};
await postsRepository.AddAsync(post, ct);