fix house

This commit is contained in:
hydrant
2019-07-16 20:42:05 +02:00
parent 976c285662
commit 3082b0bab2
10 changed files with 2606 additions and 19 deletions

View File

@@ -20,7 +20,7 @@ namespace ReallifeGamemode.Server.Managers
{
using(var dbContext = new DatabaseContext())
{
foreach (House house in dbContext.Houses.Include(h => h.User))
foreach (House house in dbContext.Houses.Include(h => h.Owner))
{
LoadHouse(house, false);
}
@@ -31,7 +31,7 @@ namespace ReallifeGamemode.Server.Managers
{
using (var dbContext = new DatabaseContext())
{
foreach(House house in await dbContext.Houses.Include(h => h.User).ToListAsync())
foreach(House house in await dbContext.Houses.Include(h => h.Owner).ToListAsync())
{
RemoveHouse(house);
LoadHouse(house, false);