diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-03-29 13:03:10 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-03-29 13:03:10 +0300 |
| commit | 0cf2a3c99141f878168271e53999cdacac95f3c4 (patch) | |
| tree | 1b37463f89d56c74bf7a093f8a2a876977e9c3ac /src | |
| parent | 92c8160d4796c6a4cefb5770f4f4ff1e082e3f41 (diff) | |
| download | DevHive-0cf2a3c99141f878168271e53999cdacac95f3c4.tar DevHive-0cf2a3c99141f878168271e53999cdacac95f3c4.tar.gz DevHive-0cf2a3c99141f878168271e53999cdacac95f3c4.zip | |
Fixed warnings for commented code and async cloudinary method
Diffstat (limited to 'src')
| -rw-r--r-- | src/Data/DevHive.Data/Repositories/PostRepository.cs | 3 | ||||
| -rw-r--r-- | src/Services/DevHive.Services/Services/CloudinaryService.cs | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Data/DevHive.Data/Repositories/PostRepository.cs b/src/Data/DevHive.Data/Repositories/PostRepository.cs index 0a88cf2..b5228c2 100644 --- a/src/Data/DevHive.Data/Repositories/PostRepository.cs +++ b/src/Data/DevHive.Data/Repositories/PostRepository.cs @@ -60,7 +60,6 @@ namespace DevHive.Data.Repositories public override async Task<bool> EditAsync(Guid id, Post newEntity) { Post post = await this.GetByIdAsync(id); - // var ratingId = post.Rating.Id; this._context .Entry(post) @@ -76,8 +75,6 @@ namespace DevHive.Data.Repositories foreach (var comment in newEntity.Comments) post.Comments.Add(comment); - // post.Rating.Id = ratingId; - this._context.Entry(post).State = EntityState.Modified; return await this.SaveChangesAsync(); diff --git a/src/Services/DevHive.Services/Services/CloudinaryService.cs b/src/Services/DevHive.Services/Services/CloudinaryService.cs index 6e2e975..05600cc 100644 --- a/src/Services/DevHive.Services/Services/CloudinaryService.cs +++ b/src/Services/DevHive.Services/Services/CloudinaryService.cs @@ -52,6 +52,9 @@ namespace DevHive.Services.Services public async Task<bool> RemoveFilesFromCloud(List<string> fileUrls) { + // Workaround, this method isn't fully implemented yet + await Task.Run(null); + return true; } } |
