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

Send payment update message after creating case from exception record #673

Expand Up @@ -238,15 +238,14 @@ private void handlePayments(CaseDetails exceptionRecord, long newCaseId) {
exceptionRecord.getId()
);

paymentsPublisher
.send(
new UpdatePaymentsCommand(
Long.toString(exceptionRecord.getId()),
Long.toString(newCaseId),
envelopeId,
jurisdiction
)
);
paymentsPublisher.send(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it did raise me an eyebrow before 🙃

new UpdatePaymentsCommand(
Long.toString(exceptionRecord.getId()),
Long.toString(newCaseId),
envelopeId,
jurisdiction
)
);
} else {
log.info(
"Exception record has no payments, not sending update command. ER id: {}",
Expand Down