diff --git a/src/main/java/cz/cvut/kbss/termit/service/repository/PasswordChangeRequestRepositoryService.java b/src/main/java/cz/cvut/kbss/termit/service/repository/PasswordChangeRequestRepositoryService.java index 5ffb5ebba..b64871cce 100644 --- a/src/main/java/cz/cvut/kbss/termit/service/repository/PasswordChangeRequestRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/termit/service/repository/PasswordChangeRequestRepositoryService.java @@ -39,11 +39,13 @@ public PasswordChangeRequest create(UserAccount userAccount) { request.setCreatedAt(Instant.now()); passwordChangeRequestDao.persist(request); + postPersist(request); return request; } public List findAllByUsername(String username) { - return passwordChangeRequestDao.findAllByUsername(username); + List loaded = passwordChangeRequestDao.findAllByUsername(username); + return loaded.stream().map(this::postLoad).toList(); } @Override