mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 18:47:15 -07:00
Only deserialize response payload in ApiRequest when StatusCode == 200. Will a default return value in other cases cause other issues?
This commit is contained in:
parent
a5651775a6
commit
231a525109
2 changed files with 17 additions and 12 deletions
|
@ -79,7 +79,7 @@ namespace Ombi.Core
|
|||
request.Approved = true;
|
||||
|
||||
// Update the record
|
||||
var updated = RequestService.UpdateRequest(request);
|
||||
bool updated = RequestService.UpdateRequest(request);
|
||||
|
||||
return updated;
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ namespace Ombi.Core
|
|||
var artistExists = index.Any(x => x.ArtistID == request.ArtistId);
|
||||
if (!artistExists)
|
||||
{
|
||||
var artistAdd = await Api.AddArtist(Settings.ApiKey, Settings.FullUri, request.ArtistId);
|
||||
bool artistAdd = await Api.AddArtist(Settings.ApiKey, Settings.FullUri, request.ArtistId);
|
||||
Log.Info("Artist add result for {1}: {0}", artistAdd, request.ArtistName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue