diff --git a/BeReadyBackend/MappingProfiles/EntityToDtoMappings.cs b/BeReadyBackend/MappingProfiles/EntityToDtoMappings.cs index abc2f39..280cade 100644 --- a/BeReadyBackend/MappingProfiles/EntityToDtoMappings.cs +++ b/BeReadyBackend/MappingProfiles/EntityToDtoMappings.cs @@ -35,7 +35,8 @@ public class EntityToDtoMappings : Profile CreateMap(); CreateMap() - .ForMember(dest => dest.ChallengeTitle, opt => opt.MapFrom(src => src.Libelle)) + .ForMember(dest => dest.ChallengeTitle, opt => opt.MapFrom(src => src.Label)) + .ForMember(dest => dest.ChallengeDescription, opt => opt.MapFrom(src => src.Libelle)) .ForMember(dest => dest.ChallengeDuration, opt => opt.MapFrom(src => src.Duration)) .ForMember(dest => dest.ChallengeStartDate, opt => opt.MapFrom(src => DateOnly.FromDateTime(src.GeneratedAt!.Value)));