Skip to content

Commit

Permalink
fixed error when no seed data is set in appsettings
Browse files Browse the repository at this point in the history
- set default empty lists for seed data properties
  • Loading branch information
sei-aschlackman committed Mar 28, 2022
1 parent 7f973a5 commit e21a9b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Steamfitter.Api/Infrastructure/Options/SeedDataOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ namespace Steamfitter.Api.Infrastructure.Options
{
public class SeedDataOptions
{
public List<PermissionEntity> Permissions { get; set; }
public List<UserEntity> Users { get; set; }
public List<UserPermissionEntity> UserPermissions { get; set; }
public List<PermissionEntity> Permissions { get; set; } = new List<PermissionEntity>();
public List<UserEntity> Users { get; set; } = new List<UserEntity>();
public List<UserPermissionEntity> UserPermissions { get; set; } = new List<UserPermissionEntity>();
}
}

0 comments on commit e21a9b9

Please sign in to comment.