Skip to content

Commit

Permalink
fix mapping for re-index (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmyMi authored Jun 26, 2022
1 parent ad0386b commit f494923
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
namespace OutOfSchool.WebApi.Extensions
{
// TODO: create a mapping profile instead of extensions
// TODO: Do it sooner then later as it leads to further inconsistencies
public static class ElasticsearchMappingExtensions
{
private const char SEPARATOR = '¤';
Expand Down Expand Up @@ -41,6 +42,7 @@ public static WorkshopES ToESModel(this WorkshopDTO workshopDto)
cfg.CreateMap<TeacherDTO, TeacherES>();
cfg.CreateMap<DateTimeRangeDto, DateTimeRangeES>()
.ForMember(dest => dest.Workdays, opt => opt.MapFrom(src => string.Join(' ', src.Workdays)));
cfg.CreateMap<DirectionDto, DirectionES>();
});
}

Expand Down

0 comments on commit f494923

Please sign in to comment.