Skip to content

Commit ce5cd93

Browse files
Fixed issue with mails
1 parent 1b8121d commit ce5cd93

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

DocuSign.Workspaces/DocuSign.Workspaces/Domain/CarePlans/CarePlansService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public async Task<List<CareDocumentsModel>> SubmitToPhysician(SubmitToPhysicians
119119
var signer1 = new Signer
120120
{
121121
Name = model.Physician.Name,
122-
Email = accountRepository.Email,
122+
Email = model.Email,
123123
RecipientId = "1",
124124
Status = sentStatus,
125125
Tabs = signer1Tabs

DocuSign.Workspaces/DocuSign.Workspaces/Domain/Workspaces/WealthManagementClient.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ private async Task<EnvelopeModel> UpdateEachEnvelopWithDocument(string envelopeI
122122
};
123123

124124
env.Documents = [doc1];
125-
var signHere1 = new SignHere
125+
126+
var signHere1 = new SignHere
126127
{
127128
AnchorString = "/sn1/",
128129
AnchorUnits = "pixels",
@@ -190,9 +191,16 @@ private async Task<EnvelopeModel> UpdateEachEnvelopWithDocument(string envelopeI
190191
}
191192

192193
env.Recipients = recipients;
193-
194194
await docuSignApiProvider.EnvelopApi.UpdateDocumentsAsync(accountRepository.AccountId, envelopeId, env);
195195

196+
var envelope = new Envelope
197+
{
198+
Recipients = recipients,
199+
Status = "Sent"
200+
};
201+
202+
await docuSignApiProvider.EnvelopApi.UpdateAsync(accountRepository.AccountId, envelopeId, envelope);
203+
196204
return new EnvelopeModel(document.Name, env.Status);
197205
}
198206
}

0 commit comments

Comments
 (0)