From 912dfa8a800db68982f92e5b4e1ad4d37d76a818 Mon Sep 17 00:00:00 2001 From: Joseph Milazzo Date: Fri, 8 Apr 2022 08:26:22 -0500 Subject: [PATCH] Fixed some missing merge stuff --- API/DTOs/UpdateUserRole.cs | 10 ---------- API/Startup.cs | 3 --- 2 files changed, 13 deletions(-) delete mode 100644 API/DTOs/UpdateUserRole.cs 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.