mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Fixes to the issues
This commit is contained in:
parent
5a1b606f01
commit
6f18c69f5f
3 changed files with 7 additions and 6 deletions
|
@ -362,7 +362,7 @@ namespace PlexRequests.UI.Modules
|
|||
|
||||
return myIssues;
|
||||
}
|
||||
private async Task<Negotiator> RemoveIssue(int issueId)
|
||||
private async Task<Response> RemoveIssue(int issueId)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -378,13 +378,13 @@ namespace PlexRequests.UI.Modules
|
|||
await IssuesService.DeleteIssueAsync(issueId);
|
||||
}
|
||||
|
||||
return View["Index"];
|
||||
return Response.AsJson(new JsonResponseModel() { Result = true });
|
||||
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Error(e);
|
||||
return View["Index"];
|
||||
return Response.AsJson(new JsonResponseModel() { Result = false, Message = "Could not delete issue! Check the logs."});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue