Skip to content

Commit

Permalink
Improve UserServiceImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiLandiak committed May 17, 2024
1 parent fe4b096 commit f5ec411
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,16 +160,11 @@ public ListenableFuture<User> findUserByIdAsync(TenantId tenantId, UserId userId
@Override
@Transactional
public User saveUser(TenantId tenantId, User user) {
return doSaveUser(tenantId, user, true);
return saveUser(tenantId, user, true);
}

@Override
@Transactional
public User saveUser(TenantId tenantId, User user, boolean doValidate) {
return doSaveUser(tenantId, user, doValidate);
}

private User doSaveUser(TenantId tenantId, User user, boolean doValidate) {
log.trace("Executing saveUser [{}]", user);
User oldUser = null;
if (doValidate) {
Expand Down

0 comments on commit f5ec411

Please sign in to comment.