mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
Fixed where you could not delete issues
This commit is contained in:
parent
6fda24c98a
commit
b1fec7ad3f
2 changed files with 2 additions and 1 deletions
|
@ -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">
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue