Skip to content

Commit

Permalink
some cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
emmdurin committed Dec 22, 2023
1 parent 4297b05 commit f9eb79d
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ private void ensureOrgExists(@NonNull Account newAccount) {
List<String> currentMembers = org.getMembers();
currentMembers.add(newAccount.getUid());
org.setMembers(currentMembers);
org.setId(orgId);

orgsDao.update(org);
} catch (NameNotFoundException e) {
log.info("Org {} does not exist, trying to create it", orgId);
Expand All @@ -181,8 +179,7 @@ private void ensureOrgExists(@NonNull Account newAccount) {
org.setId(orgId);
org.setName(orgId);
org.setShortName(orgId);
org.setPending(false);
org.setOrgType("default");
org.setOrgType("Other");
org.setMembers(Arrays.asList(newAccount.getUid()));
orgsDao.insert(org);
}
Expand Down

0 comments on commit f9eb79d

Please sign in to comment.