Refactor SQL queries and data mappings

- Updated SQL query in `EnvelopeReceiverAddReadSQL.cs` to select specific columns (`ENVELOPE_ID` and `RECEIVER_ID`) for improved performance and clarity.
- Changed mapping of `SentRecipients` in `EnvelopeReceiverController.cs` to expect a single `ReceiverReadDto` instead of a collection, reflecting a change in data handling.
- Modified `QueryAsync` in `EnvelopeReceiverExecutor.cs` to remove the generic type parameter, allowing for more flexible data handling.
This commit is contained in:
Developer 02
2025-05-07 14:10:20 +02:00
parent 6bdf0d5220
commit 1875acb7b5
3 changed files with 4 additions and 4 deletions

View File

@@ -217,7 +217,7 @@ public class EnvelopeReceiverController : ControllerBase
var res = _mapper.Map<CreateEnvelopeReceiverResponse>(envelope);
res.UnsentRecipients = unsentRecipients;
res.SentRecipients = _mapper.Map<IEnumerable<ReceiverReadDto>>(sentRecipients);
res.SentRecipients = _mapper.Map<List<ReceiverReadDto>>(sentRecipients);
#endregion
#region Add document