Antag preferences and antag prototype (#1264)
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
@@ -26,8 +26,8 @@ namespace Content.Server.Database
|
||||
{
|
||||
return await _prefsCtx
|
||||
.Preferences
|
||||
.Include(p => p.HumanoidProfiles)
|
||||
.ThenInclude(h => h.Jobs)
|
||||
.Include(p => p.HumanoidProfiles).ThenInclude(h => h.Jobs)
|
||||
.Include(p => p.HumanoidProfiles).ThenInclude(h => h.Antags)
|
||||
.SingleOrDefaultAsync(p => p.Username == username);
|
||||
}
|
||||
|
||||
@@ -72,6 +72,7 @@ namespace Content.Server.Database
|
||||
{
|
||||
return await _prefsCtx.HumanoidProfile
|
||||
.Include(p => p.Jobs)
|
||||
.Include(a => a.Antags)
|
||||
.Join(_prefsCtx.Preferences,
|
||||
profile => new {profile.Slot, profile.PrefsId},
|
||||
prefs => new {Slot = prefs.SelectedCharacterSlot, prefs.PrefsId},
|
||||
|
||||
Reference in New Issue
Block a user