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


The following commit(s) were added to refs/heads/UNOMI-700-reduce-refresh-uses 
by this push:
     new 5196a984e feedback
5196a984e is described below

commit 5196a984ecd9fcdf2749fc629c9f66fcc12ff261
Author: jsinovassin <jsinovassinn...@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());

Reply via email to