From 350d78d28a5820c5df60ae5b1c47568cb320aa1c Mon Sep 17 00:00:00 2001 From: Adrian Fish Date: Wed, 22 Jan 2025 15:48:49 +0000 Subject: [PATCH] Update conversations/impl/src/main/java/org/sakaiproject/conversations/impl/ConversationsServiceImpl.java Co-authored-by: bgarciaentornos --- .../conversations/impl/ConversationsServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conversations/impl/src/main/java/org/sakaiproject/conversations/impl/ConversationsServiceImpl.java b/conversations/impl/src/main/java/org/sakaiproject/conversations/impl/ConversationsServiceImpl.java index 2e169277c5b5..40d4a2904038 100644 --- a/conversations/impl/src/main/java/org/sakaiproject/conversations/impl/ConversationsServiceImpl.java +++ b/conversations/impl/src/main/java/org/sakaiproject/conversations/impl/ConversationsServiceImpl.java @@ -2358,7 +2358,7 @@ public Map getSiteStats(String siteId, Instant from, Instant to, getEventStats(ConversationsEvents.POST_UPVOTED, siteId, from, to, userIds).forEach(stat -> { Long current = upvotedPostCountsByUser.getOrDefault(stat.getUserId(), 0L); - current = current + stat.getCount(); + current += stat.getCount(); upvotedPostCountsByUser.put(stat.getUserId(), current); });