Skip to content

Commit

Permalink
Update DbInitializer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasbbs authored Mar 13, 2024
1 parent 55bacb0 commit b618c93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Data/DbInitializer/DbInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public void Initialize()
}catch (Exception ex)
{}

if (!_roleManager.RoleExistsAsync("User").GetAwaiter().GetResult() )
if (false) {
//!_roleManager.RoleExistsAsync("User").GetAwaiter().GetResult() )
{
_roleManager.CreateAsync(new IdentityRole("User")).GetAwaiter().GetResult();
_roleManager.CreateAsync(new IdentityRole("Admin")).GetAwaiter().GetResult();
Expand Down

0 comments on commit b618c93

Please sign in to comment.