From 083e07061dc76e9af76bd59a99be55c13477ed4c Mon Sep 17 00:00:00 2001 From: hydrant Date: Tue, 1 Jun 2021 11:24:04 +0000 Subject: [PATCH] login user auch fraktion und rang holen --- ReallifeGamemode.Server/Events/Login.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Events/Login.cs b/ReallifeGamemode.Server/Events/Login.cs index 8413552f..2dbcd189 100644 --- a/ReallifeGamemode.Server/Events/Login.cs +++ b/ReallifeGamemode.Server/Events/Login.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using GTANetworkAPI; using Microsoft.EntityFrameworkCore; using Newtonsoft.Json; @@ -33,6 +33,8 @@ namespace ReallifeGamemode.Server.Events using (var dbContext = new DatabaseContext()) { var user = dbContext.Users + .Include(u => u.Faction) + .Include(u => u.FactionRank) .Include(u => u.Group) .Include(u => u.BankAccount) .SingleOrDefault(b => b.Name == username);