Added missing include
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user