Skip to content

Commit

Permalink
was encrypting email
Browse files Browse the repository at this point in the history
  • Loading branch information
AlistairMRoss committed Oct 20, 2023
1 parent 5b23285 commit a15c2e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public ResponseEntity<String> reviewAccessRequest(ReviewRequest reviewRequest) {
dataScope.getUsers().add(user);
dataScopeRepository.save(dataScope);
deleteService.deleteAccessRequestAndSaveToSecondary(reviewRequest.getRequest_id());
emailUser(encryptionService.decryptString(reviewRequest.getUser_email()), dataScope.getDs_name(), "Approved");
emailUser(reviewRequest.getUser_email(), dataScope.getDs_name(), "Approved");
notificationsService.makeNotification("Added to Datascope " + dataScope.getDs_name(), user);
return ResponseEntity.ok("given to user");
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public ResponseEntity<String> reviewAssetRequest(ReviewRequest reviewRequest) {
asset.setAvailability("No");
asset.setCurrent_assignee(user);
assetRepository.save(asset);
emailUser(encryptionService.decryptString(reviewRequest.getUser_email()), asset.getAsset_name(), "Approved");
emailUser(reviewRequest.getUser_email(), asset.getAsset_name(), "Approved");
notificationsService.makeNotification("Received Asset " + asset.getAsset_name(), user);
deleteService.deleteAssetRequestAndSaveToSecondary(reviewRequest.getRequest_id());
return ResponseEntity.ok("given to user");
Expand Down

0 comments on commit a15c2e1

Please sign in to comment.