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

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


The following commit(s) were added to refs/heads/master by this push:
     new ca6e79c  UNOMI-504 : fix purge profiles (#332)
ca6e79c is described below

commit ca6e79c47fad08bb47ee5711dceaad50d87a688e
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 90c0c86..99d54b0 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
@@ -349,7 +349,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);
@@ -357,7 +357,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