Force max depth on Game

This commit is contained in:
Pat Hartl 2024-11-16 11:40:51 -06:00
parent 7c87bfcf24
commit 50879edf4d

View file

@ -41,6 +41,7 @@ namespace LANCommander.Server
opt => opt.MapFrom(src => src.PrimaryAction));
CreateMap<Data.Models.Game, SDK.Models.Game>()
.MaxDepth(5)
.ForMember(dest =>
dest.DependentGames,
opt => opt.MapFrom(src => src.DependentGames.Select(d => d.Id)));