Skip to content

Commit

Permalink
Revert possible regression
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCatchpole committed Sep 27, 2023
1 parent 46fc316 commit 10ec15a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,13 @@ public void handleSubmitted(@RequestBody CallbackRequest request) {
CaseData caseData = getCaseData(request);

DocumentUploaderType userType = getUploaderType(caseData.getId());
UserDetails userDetails = userService.getUserDetails();
if (this.featureToggleService.isNewDocumentUploadNotificationEnabled()
|| (!DocumentUploaderType.SOLICITOR.equals(userType) && !DocumentUploaderType.BARRISTER.equals(userType))) {
UserDetails userDetails = userService.getUserDetails();

publishEvent(new FurtherEvidenceUploadedEvent(getCaseData(request),
getCaseDataBefore(request), userType, userDetails));
publishEvent(new FurtherEvidenceUploadedEvent(getCaseData(request),
getCaseDataBefore(request), userType, userDetails));
}
}

private DocumentUploaderType getUploaderType(Long id) {
Expand Down

0 comments on commit 10ec15a

Please sign in to comment.