Skip to content
Snippets Groups Projects
Commit 46d08fb9 authored by snemeckayova's avatar snemeckayova
Browse files

Fix delete review bug

parent e4fe5039
No related branches found
No related tags found
3 merge requests!46Milestone-2,!35Add tests,!33Restaurant, Location, User Service testing
Pipeline #
......@@ -50,7 +50,7 @@ namespace BusinessLayer.Services.ReviewService
{
var review = await _dbContext.Reviews.FindAsync(id);
if (review is null)
if (review is null || review.DeletedAt is not null)
{
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment