Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmayer-dev committed Feb 5, 2024
1 parent 0c435fa commit 08bc431
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public ApiV2VersionController(

[HttpGet("check/{installedVersion}/{platform}")]
[AllowAnonymous]
public async ValueTask<ActionResult<ApiV2CheckResult>> CheckForUpdates(
public async ValueTask<ActionResult<ApiV2CheckResult?>> CheckForUpdates(
string installedVersion,
PlatformIdentifier platform,
[FromQuery] bool betaVersions = false)
Expand All @@ -39,7 +39,7 @@ public async ValueTask<ActionResult<ApiV2CheckResult>> CheckForUpdates(

[HttpGet("latest/{platform}")]
[AllowAnonymous]
public async ValueTask<ActionResult<ApiV2VersionInfo>> GetLatestVersion(
public async ValueTask<ActionResult<ApiV2VersionInfo?>> GetLatestVersion(
PlatformIdentifier platform,
[FromQuery] bool betaVersions = false)
{
Expand All @@ -49,7 +49,7 @@ public async ValueTask<ActionResult<ApiV2VersionInfo>> GetLatestVersion(

[HttpGet("{version}")]
[AllowAnonymous]
public async ValueTask<ActionResult<ApiV2VersionInfo>> GetVersion(string version)
public async ValueTask<ActionResult<ApiV2VersionInfo?>> GetVersion(string version)
{
var versionInfo = await _versionManager.GetVersion(version);
return _mapper.Map<ApiV2VersionInfo>(versionInfo);
Expand Down

0 comments on commit 08bc431

Please sign in to comment.