Added missing include
This commit is contained in:
@@ -18,6 +18,7 @@ public class PatchLikeEndpoint(UserPostsRepository userPostsRepository, UsersRep
|
|||||||
public override void Configure()
|
public override void Configure()
|
||||||
{
|
{
|
||||||
Patch("/Posts/{@PostId}/Like", x => new { x.PostId });
|
Patch("/Posts/{@PostId}/Like", x => new { x.PostId });
|
||||||
|
Description(x => x.Accepts<PatchLikeRequest>());
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task HandleAsync(PatchLikeRequest req, CancellationToken ct)
|
public override async Task HandleAsync(PatchLikeRequest req, CancellationToken ct)
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ public class GetPostByIdSpec : SingleResultSpecification<Post>
|
|||||||
public GetPostByIdSpec(int postId)
|
public GetPostByIdSpec(int postId)
|
||||||
{
|
{
|
||||||
Query
|
Query
|
||||||
|
.Include(x => x.User)
|
||||||
.Where(x => x.Id == postId);
|
.Where(x => x.Id == postId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user