Skip to content

Commit

Permalink
Merge pull request #9 from Macro-Deck-App/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
manuelmayer-dev authored Feb 5, 2024
2 parents 08bc431 + b0e8d30 commit 4903027
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<WarningsAsErrors>CS8602</WarningsAsErrors>
</PropertyGroup>

</Project>
4 changes: 2 additions & 2 deletions src/MacroDeck.UpdateService.Core/Managers/VersionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ public async ValueTask<VersionInfo> GetLatestVersion(PlatformIdentifier platform
var versionEntity = await _versionRepository.GetLatestVersion(platformIdentifier, includePreviewVersions)
?? throw new NoVersionFoundException();

return _mapper.Map<VersionInfo>(versionEntity);
return _mapper.Map<VersionInfo>(versionEntity) ?? throw new NoVersionFoundException();
}

public async ValueTask<VersionInfo> GetVersion(string version)
{
var versionEntity = await _versionRepository.GetVersionInfo(version)
?? throw new VersionDoesNotExistException();

return _mapper.Map<VersionInfo>(versionEntity);
return _mapper.Map<VersionInfo>(versionEntity) ?? throw new NoVersionFoundException();
}

public async ValueTask<VersionEntity> GetOrCreateVersion(string version)
Expand Down
2 changes: 1 addition & 1 deletion src/MacroDeck.UpdateService/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app
FROM ${BASE_IMAGE} AS build
WORKDIR /src/src/MacroDeck.UpdateService/

RUN dotnet msbuild "MacroDeck.UpdateService.csproj" -warnAsMessage:CS0618 -warnAsError -p:Configuration=Release
RUN dotnet msbuild "MacroDeck.UpdateService.csproj" -p:Configuration=Release

FROM build AS publish
RUN dotnet publish -c Release -o /app
Expand Down

0 comments on commit 4903027

Please sign in to comment.