fixed error with foreign key in post
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user