diff --git a/API/DTOs/UpdateUserRole.cs b/API/DTOs/UpdateUserRole.cs deleted file mode 100644 index a37076d2c..000000000 --- a/API/DTOs/UpdateUserRole.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Collections.Generic; -using MediatR; - -namespace API.DTOs; - -public class UpdateUserRole : IRequest -{ - public string Username { get; init; } - public IList Roles { get; init; } -} diff --git a/API/Startup.cs b/API/Startup.cs index 2f8ac4d1a..e1dd28a81 100644 --- a/API/Startup.cs +++ b/API/Startup.cs @@ -19,7 +19,6 @@ using Hangfire; using Hangfire.MemoryStorage; using Kavita.Common; using Kavita.Common.EnvironmentInfo; -using MediatR; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; @@ -132,8 +131,6 @@ namespace API // Add IHostedService for startup tasks // Any services that should be bootstrapped go here services.AddHostedService(); - - services.AddMediatR(typeof(Startup)); } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.