Skip to content

Commit

Permalink
small datascope improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
AlistairMRoss committed Oct 22, 2023
1 parent 52dca17 commit d310cb2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ public void deleteDataScopeAndSaveToSecondary(int datascope_id) {
for(Task task : entityToDelete.getTasks()){
deleteTaskAndSaveToSecondary(task.getTask_id(), "DatascopeDeleted");
}
for(SupportRequest supportRequest : entityToDelete.getSupportRequests()){
deleteSupportRequestAndSaveToSecondary(supportRequest.getSupport_id());
}
dataScopeRoleRepository.deleteAll(dataScopeRoleRepository.findAllByDataScopeDataScopeId(datascope_id));
deletedDataScopeRepository.save(de);
dataScopeRepository.delete(entityToDelete);
Expand Down

0 comments on commit d310cb2

Please sign in to comment.