From 8bce9df5a1ffd1fea00eed5f5197c9b957c49f8d Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Thu, 14 May 2026 13:43:53 +0100 Subject: [PATCH] Added missing include --- BeReadyBackend/Endpoints/Posts/PatchLikeEndpoint.cs | 1 + BeReadyBackend/Specifications/Posts/GetPostByIdSpec.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/BeReadyBackend/Endpoints/Posts/PatchLikeEndpoint.cs b/BeReadyBackend/Endpoints/Posts/PatchLikeEndpoint.cs index d6b8713..5d2b8f0 100644 --- a/BeReadyBackend/Endpoints/Posts/PatchLikeEndpoint.cs +++ b/BeReadyBackend/Endpoints/Posts/PatchLikeEndpoint.cs @@ -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()); } public override async Task HandleAsync(PatchLikeRequest req, CancellationToken ct) diff --git a/BeReadyBackend/Specifications/Posts/GetPostByIdSpec.cs b/BeReadyBackend/Specifications/Posts/GetPostByIdSpec.cs index e927281..79a5f0e 100644 --- a/BeReadyBackend/Specifications/Posts/GetPostByIdSpec.cs +++ b/BeReadyBackend/Specifications/Posts/GetPostByIdSpec.cs @@ -8,6 +8,7 @@ public class GetPostByIdSpec : SingleResultSpecification public GetPostByIdSpec(int postId) { Query + .Include(x => x.User) .Where(x => x.Id == postId); } } \ No newline at end of file