diff --git a/sonarQuest-backend/src/main/java/com/viadee/sonarquest/services/UserService.java b/sonarQuest-backend/src/main/java/com/viadee/sonarquest/services/UserService.java index d28df182..ac4ecfc8 100644 --- a/sonarQuest-backend/src/main/java/com/viadee/sonarquest/services/UserService.java +++ b/sonarQuest-backend/src/main/java/com/viadee/sonarquest/services/UserService.java @@ -171,6 +171,7 @@ public Level getLevel(final long xp) { return levelService.getLevelByUserXp(xp); } + @Transactional public void updateLastLogin(final String username) { final User user = findByUsername(username); user.setLastLogin(Timestamp.valueOf(LocalDateTime.now()));