fix karma
This commit is contained in:
parent
3607cfa37b
commit
f2de0e0ba3
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user