Remove unused fat
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Hutopy.Domain.Constants;
|
||||
using Hutopy.Infrastructure.Identity;
|
||||
using Hutopy.Infrastructure.Identity;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
@@ -55,13 +54,13 @@ public class ApplicationDbContextInitializer(
|
||||
|
||||
private async Task TrySeedAsync()
|
||||
{
|
||||
var administratorRole = new ApplicationRole(Roles.Administrator);
|
||||
var administratorRole = new ApplicationRole(KnownRoles.Administrator);
|
||||
if (roleManager.Roles.All(r => r.Name != administratorRole.Name))
|
||||
{
|
||||
await roleManager.CreateAsync(administratorRole);
|
||||
}
|
||||
|
||||
var roleCreator = new ApplicationRole(Roles.Creator);
|
||||
var roleCreator = new ApplicationRole(KnownRoles.Creator);
|
||||
if (roleManager.Roles.All(r => r.Name != roleCreator.Name))
|
||||
{
|
||||
await roleManager.CreateAsync(roleCreator);
|
||||
|
||||
Reference in New Issue
Block a user