Nullify OAuthConnection

This commit is contained in:
Jordan Dominion
2023-12-18 23:19:48 -05:00
parent 8fc4c36fd3
commit d7b2d27934
@@ -1,6 +1,4 @@
#nullable disable
namespace Tgstation.Server.Host.Models
namespace Tgstation.Server.Host.Models
{
/// <inheritdoc cref="Api.Models.OAuthConnection" />
public sealed class OAuthConnection : Api.Models.OAuthConnection, IApiTransformable<Api.Models.OAuthConnection>
@@ -13,10 +11,10 @@ namespace Tgstation.Server.Host.Models
/// <summary>
/// The owning <see cref="Models.User"/>.
/// </summary>
public User User { get; set; }
public User? User { get; set; }
/// <inheritdoc />
public Api.Models.OAuthConnection ToApi() => new Api.Models.OAuthConnection
public Api.Models.OAuthConnection ToApi() => new()
{
Provider = Provider,
ExternalUserId = ExternalUserId,