LSPD/FIB: Fix Geld bei einknasten

This commit is contained in:
hydrant
2021-04-22 17:21:39 +02:00
parent ba72412019
commit ce7791a693

View File

@@ -102,7 +102,7 @@ namespace ReallifeGamemode.Server.Extensions
}
int factionMoney = user.Wanteds * 6;
var executiveFactions = dbContext.Factions.Where(f => f.Id == 1 || f.Id == 3);
var executiveFactions = dbContext.Factions.Include(f => f.BankAccount).Where(f => f.Id == 1 || f.Id == 3);
foreach(var faction in executiveFactions)
{
faction.BankAccount.Balance += factionMoney;