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

jkevan pushed a commit to branch unomi-1.6.x
in repository https://gitbox.apache.org/repos/asf/unomi.git


The following commit(s) were added to refs/heads/unomi-1.6.x by this push:
     new 71ae070  UNOMI-504 : fix purge profiles (#332)
71ae070 is described below

commit 71ae07029758845aa2007234296c6c126f6ef43e
Author: jsinovassin <[email protected]>
AuthorDate: Mon Aug 16 11:08:02 2021 +0200

    UNOMI-504 : fix purge profiles (#332)
---
 .../org/apache/unomi/services/impl/profiles/ProfileServiceImpl.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/services/src/main/java/org/apache/unomi/services/impl/profiles/ProfileServiceImpl.java
 
b/services/src/main/java/org/apache/unomi/services/impl/profiles/ProfileServiceImpl.java
index 20136f4..5711538 100644
--- 
a/services/src/main/java/org/apache/unomi/services/impl/profiles/ProfileServiceImpl.java
+++ 
b/services/src/main/java/org/apache/unomi/services/impl/profiles/ProfileServiceImpl.java
@@ -317,7 +317,7 @@ public class ProfileServiceImpl implements ProfileService, 
SynchronousBundleList
 
                             if (purgeProfileInactiveTime > 0) {
                                 Condition inactiveTimeCondition = new 
Condition(profilePropertyConditionType);
-                                
inactiveTimeCondition.setParameter("propertyName", "lastVisit");
+                                
inactiveTimeCondition.setParameter("propertyName", "properties.lastVisit");
                                 
inactiveTimeCondition.setParameter("comparisonOperator", "lessThanOrEqualTo");
                                 
inactiveTimeCondition.setParameter("propertyValueDateExpr", "now-" + 
purgeProfileInactiveTime + "d");
                                 subConditions.add(inactiveTimeCondition);
@@ -325,7 +325,7 @@ public class ProfileServiceImpl implements ProfileService, 
SynchronousBundleList
 
                             if (purgeProfileExistTime > 0) {
                                 Condition existTimeCondition = new 
Condition(profilePropertyConditionType);
-                                
existTimeCondition.setParameter("propertyName", "firstVisit");
+                                
existTimeCondition.setParameter("propertyName", "properties.firstVisit");
                                 
existTimeCondition.setParameter("comparisonOperator", "lessThanOrEqualTo");
                                 
existTimeCondition.setParameter("propertyValueDateExpr", "now-" + 
purgeProfileExistTime + "d");
                                 subConditions.add(existTimeCondition);

Reply via email to