Merge remote-tracking branch 'origin/develop' into develop
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-04-10 11:53:20 +02:00
2 changed files with 3 additions and 1 deletions

View File

@@ -160,6 +160,7 @@ public class UserCacheService {
public @Nullable UserDTO retrieveUserData(String profileDb, String username, IntegryApplicationEnum application) {
String dbName = settingsModel.getDbNameFromProfileDb(profileDb);
cacheLock.lock();
List<UserDTO> users = cachedUsers.getOrDefault(dbName, null);
if (users == null || users.isEmpty())
@@ -173,6 +174,7 @@ public class UserCacheService {
(application == IntegryApplicationEnum.WMS && x.isWeb()) ||
(application == IntegryApplicationEnum.GESTIONALE_BASE && x.isInternal())))
.findFirst();
cacheLock.unlock();
return foundUser.orElse(null);
}

File diff suppressed because one or more lines are too long