Skip to content

Commit

Permalink
LPS-115749 our usual order
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Jul 21, 2020
1 parent 8cd3da0 commit 21b2adc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Expand Up @@ -68,6 +68,8 @@ public AccountGroup addAccountGroup(

@Override
public AccountGroup deleteAccountGroup(AccountGroup accountGroup) {
accountGroupPersistence.remove(accountGroup);

List<AccountGroupAccountEntryRel> accountGroupAccountEntryRels =
accountGroupAccountEntryRelPersistence.findByAccountGroupId(
accountGroup.getAccountGroupId());
Expand All @@ -79,7 +81,7 @@ public AccountGroup deleteAccountGroup(AccountGroup accountGroup) {
accountGroupAccountEntryRel);
}

return accountGroupPersistence.remove(accountGroup);
return accountGroup;
}

@Override
Expand Down
Expand Up @@ -129,10 +129,10 @@ public void deleteAccountRolesByCompanyId(long companyId) {
for (AccountRole accountRole :
accountRolePersistence.findByCompanyId(companyId)) {

accountRolePersistence.remove(accountRole);

userGroupRoleLocalService.deleteUserGroupRolesByRoleId(
accountRole.getRoleId());

accountRolePersistence.remove(accountRole);
}
}

Expand Down

0 comments on commit 21b2adc

Please sign in to comment.