mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 16:39:21 +01:00
Fix client trying to read the wrong type of object for Version()
This commit is contained in:
@@ -36,9 +36,9 @@ namespace Tgstation.Server.Client
|
||||
IUsersClient Users { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="System.Version"/> of the <see cref="IServerClient"/>
|
||||
/// The <see cref="ServerInformation"/> of the <see cref="IServerClient"/>
|
||||
/// </summary>
|
||||
Task<Version> Version(CancellationToken cancellationToken);
|
||||
Task<ServerInformation> Version(CancellationToken cancellationToken);
|
||||
|
||||
/// <summary>
|
||||
/// Adds a <paramref name="requestLogger"/> to the request pipeline
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace Tgstation.Server.Client
|
||||
public void Dispose() => apiClient.Dispose();
|
||||
|
||||
/// <inheritdoc />
|
||||
public Task<Version> Version(CancellationToken cancellationToken) => apiClient.Read<Version>(Routes.Root, cancellationToken);
|
||||
public Task<ServerInformation> Version(CancellationToken cancellationToken) => apiClient.Read<ServerInformation>(Routes.Root, cancellationToken);
|
||||
|
||||
/// <inheritdoc />
|
||||
public void AddRequestLogger(IRequestLogger requestLogger) => apiClient.AddRequestLogger(requestLogger);
|
||||
|
||||
Reference in New Issue
Block a user