Fixed error with title of random challenges
This commit is contained in:
@@ -35,7 +35,8 @@ public class EntityToDtoMappings : Profile
|
|||||||
CreateMap<UserRandomChallenge, GetUserProofDto>();
|
CreateMap<UserRandomChallenge, GetUserProofDto>();
|
||||||
|
|
||||||
CreateMap<RandomChallenge, GetUserChallengeDto>()
|
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.ChallengeDuration, opt => opt.MapFrom(src => src.Duration))
|
||||||
.ForMember(dest => dest.ChallengeStartDate, opt => opt.MapFrom(src => DateOnly.FromDateTime(src.GeneratedAt!.Value)));
|
.ForMember(dest => dest.ChallengeStartDate, opt => opt.MapFrom(src => DateOnly.FromDateTime(src.GeneratedAt!.Value)));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user