From f5ec4115e0061c00ec56fed5055d2906c9144dcb Mon Sep 17 00:00:00 2001 From: Andrii Landiak Date: Fri, 17 May 2024 16:17:44 +0300 Subject: [PATCH] Improve UserServiceImpl --- .../org/thingsboard/server/dao/user/UserServiceImpl.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dao/src/main/java/org/thingsboard/server/dao/user/UserServiceImpl.java b/dao/src/main/java/org/thingsboard/server/dao/user/UserServiceImpl.java index a6502b06f0f..afec408a865 100644 --- a/dao/src/main/java/org/thingsboard/server/dao/user/UserServiceImpl.java +++ b/dao/src/main/java/org/thingsboard/server/dao/user/UserServiceImpl.java @@ -160,16 +160,11 @@ public ListenableFuture 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) {