diff options
| Commit | 5446e356a9783645f5599fb2b4f7fe8f4d05e30e (patch) | |
|---|---|---|
| Author | 2021-02-03 20:54:49 +0200 | |
| Committer | 2021-02-03 20:54:49 +0200 | |
| Files | a091c43d3c661eeff7a6cfcdb1d5200700c34b2e /src/DevHive.Services | |
| DevHive-5446e356a9783645f5599fb2b4f7fe8f4d05e30e.tar DevHive-5446e356a9783645f5599fb2b4f7fe8f4d05e30e.tar.gz DevHive-5446e356a9783645f5599fb2b4f7fe8f4d05e30e.zip | ||
| Parent | b045833c3c490f02b6b65ab78aa46c938117718e (diff) | |
Post Editing preserves Post's comments
1 files changed, 1 insertions, 0 deletions
| -rw-r--r-- | src/DevHive.Services/Services/PostService.cs | 1 |
diff --git a/src/DevHive.Services/Services/PostService.cs b/src/DevHive.Services/Services/PostService.cs index 8002468..6dbb272 100644 --- a/src/DevHive.Services/Services/PostService.cs +++ b/src/DevHive.Services/Services/PostService.cs @@ -105,6 +105,7 @@ namespace DevHive.Services.Services } post.Creator = await this._userRepository.GetByIdAsync(updatePostServiceModel.CreatorId); + post.Comments = await this._commentRepository.GetPostComments(updatePostServiceModel.PostId); post.TimeCreated = DateTime.Now; bool result = await this._postRepository.EditAsync(updatePostServiceModel.PostId, post); |
