Updated delete logic for voice works.
All checks were successful
ci / build-test (push) Successful in 3m1s
ci / publish-image (push) Successful in 1m58s

This commit is contained in:
2026-05-09 00:51:10 -04:00
parent 9c9e33ebec
commit 5eecba7eec
10 changed files with 124 additions and 16 deletions

View File

@@ -53,6 +53,23 @@ public static class WebApplicationExtensions
}
});
app.UseExceptionHandler(errorApp =>
{
errorApp.Run(async context =>
{
context.Response.StatusCode = StatusCodes.Status500InternalServerError;
context.Response.ContentType = "application/problem+json";
await Results.Problem(
title: "An unexpected error occurred.",
detail: app.Environment.IsDevelopment()
? "Check the API logs for details."
: null,
statusCode: StatusCodes.Status500InternalServerError
).ExecuteAsync(context);
});
});
return app;
}