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/09 18:18:47 UTC

[unomi] branch UNOMI-700-reduce-refresh-uses updated: 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


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 <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());