Resolved #979: Make Post.CreatorId nullable

pull/988/head
Halil ibrahim Kalkan 7 years ago
parent bacf9f2159
commit 9056cd2bf8

@ -156,7 +156,7 @@ namespace Volo.Blogging.Posts
var post = new Post(
id: GuidGenerator.Create(),
blogId: input.BlogId,
creatorId: CurrentUser.GetId(),
creatorId: CurrentUser.Id,
title: input.Title,
coverImage: input.CoverImage,
url: input.Url

@ -33,7 +33,7 @@ namespace Volo.Blogging.Posts
}
public Post(Guid id, Guid blogId, Guid creatorId, [NotNull] string title, [NotNull] string coverImage, [NotNull] string url)
public Post(Guid id, Guid blogId, Guid? creatorId, [NotNull] string title, [NotNull] string coverImage, [NotNull] string url)
{
Id = id;
CreatorId = creatorId;

Loading…
Cancel
Save