Added missing include

This commit is contained in:
2026-05-14 13:43:53 +01:00
parent 1fff5f816f
commit 8bce9df5a1
2 changed files with 2 additions and 0 deletions
@@ -18,6 +18,7 @@ public class PatchLikeEndpoint(UserPostsRepository userPostsRepository, UsersRep
public override void Configure()
{
Patch("/Posts/{@PostId}/Like", x => new { x.PostId });
Description(x => x.Accepts<PatchLikeRequest>());
}
public override async Task HandleAsync(PatchLikeRequest req, CancellationToken ct)
@@ -8,6 +8,7 @@ public class GetPostByIdSpec : SingleResultSpecification<Post>
public GetPostByIdSpec(int postId)
{
Query
.Include(x => x.User)
.Where(x => x.Id == postId);
}
}