Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunobento1990 committed Oct 28, 2024
1 parent 336720a commit a794cdc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion OpenAdm.Api/Middlewares/LogMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public async Task Invoke(
{
try
{
Console.WriteLine("Requisição");
await _next(httpContext);
}
catch (ExceptionUnauthorize ex)
Expand Down
2 changes: 1 addition & 1 deletion OpenAdm.Api/Middlewares/ParceiroMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public async Task Invoke(
}

var referer = (string?)httpContext.Request.Headers.FirstOrDefault(x => x.Key == "Referer").Value;
Console.WriteLine($"referer: {referer}");

if (string.IsNullOrWhiteSpace(referer))
{
throw new ExceptionUnauthorize("Referencia não localizada!!");
Expand Down
2 changes: 1 addition & 1 deletion OpenAdm.Domain/Entities/Fatura.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static Fatura NovaContasAReceber(
fatura.Parcelas.Add(Parcela.NovaFatura(
dataDeVencimento: novoVencimento,
numeroDaFatura: i,
meioDePagamento: null,
meioDePagamento: meioDePagamento,
valor: valorDaParcela,
desconto: desconto,
observacao: observacao,
Expand Down

0 comments on commit a794cdc

Please sign in to comment.