diff --git a/Dockerfile b/Dockerfile index 6036de5..474eb42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,6 @@ ARG ASPNETCORE_HTTP_PORTS=5000 EXPOSE 5000 -# VOLUME /app/logs - WORKDIR /app COPY --from=build /app . diff --git a/src/Quizer.Api/Common/Mapping/QuizMappingConfig.cs b/src/Quizer.Api/Common/Mapping/QuizMappingConfig.cs index fe49840..0c1d1bf 100644 --- a/src/Quizer.Api/Common/Mapping/QuizMappingConfig.cs +++ b/src/Quizer.Api/Common/Mapping/QuizMappingConfig.cs @@ -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); diff --git a/src/Quizer.Contracts/Quiz/ShortQuizResponse.cs b/src/Quizer.Contracts/Quiz/ShortQuizResponse.cs index dffbae6..cc27a59 100644 --- a/src/Quizer.Contracts/Quiz/ShortQuizResponse.cs +++ b/src/Quizer.Contracts/Quiz/ShortQuizResponse.cs @@ -12,6 +12,8 @@ public record ShortQuizResponse( string CreatedBy, string UpdatedBy, int NumberOfQuestions, + string ImageUrl, + string ImageId, DateTime CreatedAt, DateTime UpdatedAt );