refactor(MappingProfile): update to ignore Envelope, Sender and Receiver

This commit is contained in:
2025-09-02 23:58:35 +02:00
parent 23ec4fe322
commit 1c9d0a6c47
3 changed files with 24 additions and 2 deletions

View File

@@ -14,6 +14,9 @@ public class MappingProfile: Profile
/// </summary>
public MappingProfile()
{
CreateMap<CreateHistoryCommand, EnvelopeHistory>();
CreateMap<CreateHistoryCommand, EnvelopeHistory>()
.ForMember(dest => dest.Envelope, opt => opt.Ignore())
.ForMember(dest => dest.Sender, opt => opt.Ignore())
.ForMember(dest => dest.Receiver, opt => opt.Ignore());
}
}
}