Fixed where you could not delete issues

This commit is contained in:
tidusjar 2021-03-08 09:01:02 +00:00
commit b1fec7ad3f
2 changed files with 2 additions and 1 deletions

View file

@ -8,6 +8,7 @@
background-color: white !important; background-color: white !important;
} }
</style> </style>
<base href="/">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<link href="styles/please-wait.css" rel="stylesheet"> <link href="styles/please-wait.css" rel="stylesheet">

View file

@ -278,7 +278,7 @@ namespace Ombi.Controllers.V1
[PowerUser] [PowerUser]
public async Task<bool> DeleteIssue(int id) public async Task<bool> DeleteIssue(int id)
{ {
var issue = await _issues.GetAll().FirstOrDefaultAsync(x => x.Id == id); var issue = await _issues.GetAll().Include(x => x.Comments).FirstOrDefaultAsync(x => x.Id == id);
await _issues.Delete(issue); await _issues.Delete(issue);
return true; return true;