fix(aff): set auto role after affiliation accepte

This commit is contained in:
2025-01-22 21:48:39 +01:00
parent 254fd0582f
commit eb68f84f7c
2 changed files with 12 additions and 9 deletions

View File

@@ -207,9 +207,8 @@ public class KeycloakService {
throw new KeycloakException("User name is null");
})).chain(membreModel -> creatUser(membreModel).chain(user -> {
LOGGER.infof("Set user id %s to membre %s", user.getId(), membreModel.getId());
return membreService.setUserId(membreModel.getId(), user.getId());
}))
.map(__ -> "OK");
return membreService.setUserId(membreModel.getId(), user.getId()).map(__ -> user.getId());
}));
}
private Uni<UserRepresentation> creatUser(MembreModel membreModel) {