Skip to content

Commit

Permalink
Pipeline Sap
Browse files Browse the repository at this point in the history
Related work items: #490
  • Loading branch information
mg-dgsspa committed Oct 8, 2024
1 parent aa73124 commit f59a65a
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ public async Task<bool> InviaASapFatture(string? pipelineName, FatturaInvioSap p
try
{
using var response = await httpClient.PostAsJsonAsync(requestUri, pipelineParameters);
if (!response.IsSuccessStatusCode)
_logger.LogError(503, "InviaASapFatture" + "|" + response.Serialize() + "|" + pipelineParameters.Serialize());
var status = response.IsSuccessStatusCode;
if (!status)
_logger.LogError(503, "InviaASapFatture" + "|" + response.Serialize() + "|" + pipelineParameters.Serialize() + "|" + status);

return response.IsSuccessStatusCode;
return status;
}
catch (Exception ex)
{
Expand Down

0 comments on commit f59a65a

Please sign in to comment.