Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DFPL-1414: Fix issue of Bulk Print receiving duplicated requests #4391

Merged
merged 10 commits into from
May 23, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ public List<SentDocument> send(DocumentReference mainDocument, List<Recipient> r
SendLetterResponse response = sendLetterApi.sendLetter(authTokenGenerator.generate(),
new LetterWithPdfsRequest(List.of(coverDocumentEncoded, mainDocumentEncoded),
SEND_LETTER_TYPE,
Map.of("caseId", caseId, "documentName", mainDocument.getFilename())));
Map.of(
"caseId", caseId,
"documentName", mainDocument.getFilename(),
"recipients", recipients)));
letterId = Optional.ofNullable(response).map(r -> r.letterId.toString()).orElse(EMPTY);

sentDocuments.add(SentDocument.builder()
Expand Down