Skip to content

Commit

Permalink
Merge pull request #53 from quizer-app/develop
Browse files Browse the repository at this point in the history
Fix ShortQuizResponse
  • Loading branch information
EloToJaa authored Feb 27, 2024
2 parents 5026c8f + 059b812 commit 6a8605f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ ARG ASPNETCORE_HTTP_PORTS=5000

EXPOSE 5000

# VOLUME /app/logs

WORKDIR /app
COPY --from=build /app .

Expand Down
2 changes: 2 additions & 0 deletions src/Quizer.Api/Common/Mapping/QuizMappingConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ private static void RegisterQuiz(TypeAdapterConfig config)
.Map(dest => dest.Id, src => src.Id.Value.ToString())
.Map(dest => dest.CreatedBy, src => src.CreatedBy.ToString())
.Map(dest => dest.UpdatedBy, src => src.UpdatedBy.ToString())
.Map(dest => dest.ImageId, src => src.Image.ImageId.ToString())
.Map(dest => dest.ImageUrl, src => src.Image.Url.ToString())
.Map(dest => dest.AverageRating, src => src.AverageRating.Value)
.Map(dest => dest.NumberOfRatings, src => src.AverageRating.NumRatings);

Expand Down
2 changes: 2 additions & 0 deletions src/Quizer.Contracts/Quiz/ShortQuizResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public record ShortQuizResponse(
string CreatedBy,
string UpdatedBy,
int NumberOfQuestions,
string ImageUrl,
string ImageId,
DateTime CreatedAt,
DateTime UpdatedAt
);

0 comments on commit 6a8605f

Please sign in to comment.