Fixed error with title of random challenges

This commit is contained in:
2026-04-15 12:35:14 +01:00
parent cc9e3e9ea1
commit 3be49dcdeb
@@ -35,7 +35,8 @@ public class EntityToDtoMappings : Profile
CreateMap<UserRandomChallenge, GetUserProofDto>();
CreateMap<RandomChallenge, GetUserChallengeDto>()
.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)));