mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 08:46:34 +00:00
Revert "add correct business exception handling"
This reverts commit b1693b2894.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System.Text;
|
||||
using Azaion.Common;
|
||||
using Azaion.Common.Configs;
|
||||
using Azaion.Common.Database;
|
||||
using Azaion.Common.Entities;
|
||||
@@ -108,7 +107,6 @@ builder.Services.AddScoped<ICache, MemoryCache>();
|
||||
|
||||
builder.Services.AddValidatorsFromAssemblyContaining<RegisterUserValidator>();
|
||||
|
||||
builder.Services.AddExceptionHandler<BusinessExceptionHandler>();
|
||||
var app = builder.Build();
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
@@ -183,6 +181,5 @@ app.MapPut("/users/queue-offsets/{email}",
|
||||
.RequireAuthorization()
|
||||
.WithOpenApi(op => new OpenApiOperation(op) { Summary = "Updates user queue offsets" });
|
||||
|
||||
app.UseExceptionHandler(_ => {});
|
||||
|
||||
app.Run();
|
||||
|
||||
Reference in New Issue
Block a user