From 3be49dcdebf2f77b67cf408be30d1f3d9ee52962 Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Wed, 15 Apr 2026 12:35:14 +0100 Subject: [PATCH] Fixed error with title of random challenges --- BeReadyBackend/MappingProfiles/EntityToDtoMappings.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)));