From b7bedcd2828855201095742b6f4e13ae058adefa Mon Sep 17 00:00:00 2001 From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Fri, 5 Aug 2022 01:52:13 +1000 Subject: [PATCH] Probably fix adminnotes for offline players (#10292) Works with 2 clients on my machine --- .../Administration/Commands/OpenAdminNotesCommand.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Content.Server/Administration/Commands/OpenAdminNotesCommand.cs b/Content.Server/Administration/Commands/OpenAdminNotesCommand.cs index 50442c243f..147c0d6a82 100644 --- a/Content.Server/Administration/Commands/OpenAdminNotesCommand.cs +++ b/Content.Server/Administration/Commands/OpenAdminNotesCommand.cs @@ -30,8 +30,8 @@ public sealed class OpenAdminNotesCommand : IConsoleCommand case 1 when Guid.TryParse(args[0], out notedPlayer): break; case 1: - var db = IoCManager.Resolve(); - var dbGuid = await db.GetAssignedUserIdAsync(args[0]); + var locator = IoCManager.Resolve(); + var dbGuid = await locator.LookupIdByNameAsync(args[0]); if (dbGuid == null) { @@ -39,7 +39,7 @@ public sealed class OpenAdminNotesCommand : IConsoleCommand return; } - notedPlayer = dbGuid.Value; + notedPlayer = dbGuid.UserId; break; default: shell.WriteError($"Invalid arguments.\n{Help}");