You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by js...@apache.org on 2023/03/10 10:17:10 UTC

[unomi] 01/01: feedback

This is an automated email from the ASF dual-hosted git repository.

jsinovassinnaik pushed a commit to branch UNOMI-700-reduce-refresh-uses
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit d5e328a70736771680aef9066c4f59712d0e5940
Author: jsinovassin <js...@jahia.com>
AuthorDate: Thu Mar 9 19:18:41 2023 +0100

    feedback
---
 .../java/org/apache/unomi/services/impl/goals/GoalsServiceImpl.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/services/src/main/java/org/apache/unomi/services/impl/goals/GoalsServiceImpl.java b/services/src/main/java/org/apache/unomi/services/impl/goals/GoalsServiceImpl.java
index f2091bf76..a5d92232e 100644
--- a/services/src/main/java/org/apache/unomi/services/impl/goals/GoalsServiceImpl.java
+++ b/services/src/main/java/org/apache/unomi/services/impl/goals/GoalsServiceImpl.java
@@ -540,7 +540,7 @@ public class GoalsServiceImpl implements GoalsService, SynchronousBundleListener
     @Override
     public PartialList<CampaignEvent> getEvents(Query query) {
         if(query.isForceRefresh()){
-            persistenceService.refreshIndex(Campaign.class);
+            persistenceService.refreshIndex(CampaignEvent.class);
         }
         definitionsService.resolveConditionType(query.getCondition());
         return persistenceService.query(query.getCondition(), query.getSortby(), CampaignEvent.class, query.getOffset(), query.getLimit());