fix karma

This commit is contained in:
_Bastler 2021-10-04 20:04:17 +02:00
parent 3607cfa37b
commit f2de0e0ba3

View File

@ -241,7 +241,8 @@ public class UserManager implements UserDetailsService, SmartInitializingSinglet
if (!user.getMetadata().containsKey("points")) { if (!user.getMetadata().containsKey("points")) {
long points = 0; long points = 0;
for (Entry entry : entryRepository.findAll(qEntry.author.equalsIgnoreCase(username))) { for (Entry entry : entryRepository
.findAll(qEntry.author.equalsIgnoreCase(user.getUsername()))) {
points += entryManager.getUserPoints(entry.getId(), user.getUsername()); points += entryManager.getUserPoints(entry.getId(), user.getUsername());
} }
user.getMetadata().put("points", points); user.getMetadata().put("points", points);