mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 13:07:07 +01:00
Nullify OAuthConnection
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user