load with public flag
This commit is contained in:
parent
e3c95eb109
commit
322dd01ee0
14 changed files with 73 additions and 38 deletions
|
@ -22,6 +22,8 @@ internal class CreatePostCommandHandler(BlogContext context)
|
|||
))
|
||||
.ToList()
|
||||
);
|
||||
|
||||
post.IsPublic = request.IsPublic is true;
|
||||
|
||||
await context.AddAsync(post, cancellationToken);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue