Skip to content

Commit

Permalink
Use the contact ID returned from CRM (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunndabad authored Apr 19, 2024
1 parent 0c2f715 commit f3a3d23
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,9 @@ public async Task<CreateTeacherResult> CreateTeacher(CreateTeacherCommand comman
}

var txnResponse = (ExecuteTransactionResponse)await _service.ExecuteAsync(txnRequest);
var createdContactId = ((CreateResponse)txnResponse.Responses.First()).id;

return (CreateTeacherResult.Success(helper.TeacherId, trn), txnRequest);
return (CreateTeacherResult.Success(createdContactId, trn), txnRequest);
}

internal class CreateTeacherHelper
Expand Down

0 comments on commit f3a3d23

Please sign in to comment.