Skip to content

Commit

Permalink
Merge branch 'main' into feature/P002271-6881-impl-productNames-criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
JordenReuter authored Mar 4, 2024
2 parents 48a4ca5 + b6f49c0 commit 030fcac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public PageResult<Assignment> findByCriteria(AssignmentSearchCriteria criteria)
}
}

@Transactional
public void deleteByCriteria(String roleId, List<String> productNames, String permissionId) {
var cb = getEntityManager().getCriteriaBuilder();
var dq = this.deleteQuery();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public Response getAssignment(String id) {
}

@Override
@Transactional
public Response revokeAssignments(RevokeAssignmentRequestDTO createRevokeAssignmentRequestDTO) {
dao.deleteByCriteria(createRevokeAssignmentRequestDTO.getRoleId(),
createRevokeAssignmentRequestDTO.getProductNames(),
Expand Down

0 comments on commit 030fcac

Please sign in to comment.