Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Brunobento1990 committed Jul 6, 2024
1 parent 65bc11a commit 4f8f507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenAdm.Api/Middlewares/LogMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public async Task Invoke(
}
catch (ExceptionApi ex)
{
_statusCode = 404;
_statusCode = 400;
await HandleError(httpContext, ex.Message);
_createAppLog ??= new();
_createAppLog.StatusCode = _statusCode;
Expand All @@ -62,7 +62,7 @@ public async Task Invoke(
}
catch (Exception ex)
{
_statusCode = 404;
_statusCode = 400;

if (_development)
{
Expand Down

0 comments on commit 4f8f507

Please sign in to comment.