mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 13:23:20 -07:00
Api changed again, so more fixes for #878
This commit is contained in:
parent
d87aa95dea
commit
6048053c3c
10 changed files with 20 additions and 20 deletions
|
@ -114,7 +114,7 @@ namespace Ombi.UI.Modules
|
|||
try
|
||||
{
|
||||
var status = WatcherApi.Version(settings.ApiKey, settings.FullUri);
|
||||
return !status.response
|
||||
return status.response
|
||||
? Response.AsJson(new JsonResponseModel { Result = true, Message = "Connected to Watcher successfully!" })
|
||||
: Response.AsJson(new JsonResponseModel { Result = false, Message = $"Could not connect to Watcher, Error: {status.ErrorMessage}" });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue