Skip to content

Commit

Permalink
SHIBUI-2394
Browse files Browse the repository at this point in the history
Update for when approvers are added or removed from a group
  • Loading branch information
chasegawa committed Nov 9, 2022
1 parent 6e94768 commit 500b960
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public interface GroupsRepository extends JpaRepository<Group, String> {
@Modifying
@Query(nativeQuery = true,
value = "DELETE user_groups_approvers " +
" WHERE approvers_list_resource_id IN (SELECT approvers_resource_id " +
" FROM approvers_user_groups " +
" WHERE approver_groups_resource_id = :resourceId)")
" WHERE approvers_list_resource_id IN (SELECT approvers_list_resource_id " +
" FROM user_group_approvers " +
" WHERE user_groups_resource_id = :resourceId)")
void clearApproversForGroup(@Param("resourceId") String resourceId);

void deleteByResourceId(String resourceId);
Expand Down

0 comments on commit 500b960

Please sign in to comment.