diff --git a/src/Tgstation.Server.Host/GraphQL/Subscriptions/UserSubscriptions.cs b/src/Tgstation.Server.Host/GraphQL/Subscriptions/UserSubscriptions.cs index b5a8c14998..c8dfb253f8 100644 --- a/src/Tgstation.Server.Host/GraphQL/Subscriptions/UserSubscriptions.cs +++ b/src/Tgstation.Server.Host/GraphQL/Subscriptions/UserSubscriptions.cs @@ -10,7 +10,6 @@ using HotChocolate.Types; using Tgstation.Server.Api.Rights; using Tgstation.Server.Host.GraphQL.Types; -using Tgstation.Server.Host.Models.Transformers; using Tgstation.Server.Host.Security; namespace Tgstation.Server.Host.GraphQL.Subscriptions @@ -52,28 +51,27 @@ namespace Tgstation.Server.Host.GraphQL.Subscriptions /// The updated . [Subscribe] [TgsGraphQLAuthorize(AdministrationRights.ReadUsers)] - public User UserUpdated([EventMessage] Models.User user) + public User UserUpdated([EventMessage] User user) { ArgumentNullException.ThrowIfNull(user); - - return ((Models.IApiTransformable)user).ToApi(); + return user; } /// - /// for . + /// for . /// /// The . /// The for the request. /// The for the operation. /// A resulting in a of the for the . - public ValueTask> CurrentUserUpdatedStream( + public ValueTask> CurrentUserUpdatedStream( [Service] ITopicEventReceiver receiver, [Service] IAuthenticationContext authenticationContext, CancellationToken cancellationToken) { ArgumentNullException.ThrowIfNull(receiver); ArgumentNullException.ThrowIfNull(authenticationContext); - return receiver.SubscribeAsync(SpecificUserUpdatedTopic(Models.ModelExtensions.Require(authenticationContext.User, user => user.Id)), cancellationToken); + return receiver.SubscribeAsync(SpecificUserUpdatedTopic(Models.ModelExtensions.Require(authenticationContext.User, user => user.Id)), cancellationToken); } /// @@ -83,11 +81,11 @@ namespace Tgstation.Server.Host.GraphQL.Subscriptions /// The updated . [Subscribe] [TgsGraphQLAuthorize] - public User CurrentUserUpdated([EventMessage] Models.User user) + public User CurrentUserUpdated([EventMessage] User user) { ArgumentNullException.ThrowIfNull(user); - return ((Models.IApiTransformable)user).ToApi(); + return user; } } }