Added reading list owner to the API for Mio's Mihon work.
This commit is contained in:
parent
c32f648141
commit
9be3101b55
2 changed files with 7 additions and 1 deletions
|
|
@ -287,7 +287,8 @@ public class AutoMapperProfiles : Profile
|
|||
CreateMap<AppUserBookmark, BookmarkDto>();
|
||||
|
||||
CreateMap<ReadingList, ReadingListDto>()
|
||||
.ForMember(dest => dest.ItemCount, opt => opt.MapFrom(src => src.Items.Count));
|
||||
.ForMember(dest => dest.ItemCount, opt => opt.MapFrom(src => src.Items.Count))
|
||||
.ForMember(dest => dest.OwnerUserName, opt => opt.MapFrom(src => src.AppUser.UserName));
|
||||
CreateMap<ReadingListItem, ReadingListItemDto>();
|
||||
CreateMap<ScrobbleError, ScrobbleErrorDto>();
|
||||
CreateMap<ChapterDto, TachiyomiChapterDto>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue