From b9457d7a38682327ab1f7407a051424ae6f96730 Mon Sep 17 00:00:00 2001 From: Erling Jahr Date: Tue, 23 Jul 2024 14:23:09 +0200 Subject: [PATCH] FKS-603 changed status 'ACTIV' to 'ACTIVE' --- src/main/java/no/fintlabs/externalUser/ExternalUser.java | 2 +- src/main/java/no/fintlabs/user/UserService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/no/fintlabs/externalUser/ExternalUser.java b/src/main/java/no/fintlabs/externalUser/ExternalUser.java index 40af8aa..c77d1f0 100644 --- a/src/main/java/no/fintlabs/externalUser/ExternalUser.java +++ b/src/main/java/no/fintlabs/externalUser/ExternalUser.java @@ -51,7 +51,7 @@ public User toUser(){ .mainOrganisationUnitId(mainOrganisationUnitId) .email(email) .mobilePhone(mobilePhone) - .status(accountEnabled?"ACTIV" :"DISABLED") + .status(accountEnabled?"ACTIVE" :"DISABLED") .build(); } diff --git a/src/main/java/no/fintlabs/user/UserService.java b/src/main/java/no/fintlabs/user/UserService.java index 3f3d8a8..d12e85e 100644 --- a/src/main/java/no/fintlabs/user/UserService.java +++ b/src/main/java/no/fintlabs/user/UserService.java @@ -91,7 +91,7 @@ public List getSimpleUsersUsingSpec( List userList = userRepository.findAll(userSpesification.build()); return userList.stream() - .filter(user -> user.getStatus().equals("ACTIV")) + .filter(user -> user.getStatus().equals("ACTIVE")) .map(User::toSimpleUser) .toList(); }