You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2020/04/28 16:57:05 UTC

[unomi] branch master updated: UNOMI-330 Events non-persistant by default (#150)

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

shuber 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 1571677  UNOMI-330 Events non-persistant by default (#150)
1571677 is described below

commit 1571677ab6decc1d4384df2b80e2f91377ac8be0
Author: Serge Huber <sh...@jahia.com>
AuthorDate: Tue Apr 28 18:56:59 2020 +0200

    UNOMI-330 Events non-persistant by default (#150)
    
    Fixed by making them persistent by default.
---
 api/src/main/java/org/apache/unomi/api/Event.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/src/main/java/org/apache/unomi/api/Event.java b/api/src/main/java/org/apache/unomi/api/Event.java
index 99eb51d..e7ff5a6 100644
--- a/api/src/main/java/org/apache/unomi/api/Event.java
+++ b/api/src/main/java/org/apache/unomi/api/Event.java
@@ -100,7 +100,7 @@ public class Event extends Item implements TimestampedItem {
      * @param timestamp the timestamp associated with the event if provided
      */
     public Event(String eventType, Session session, Profile profile, String scope, Item source, Item target, Date timestamp) {
-        this(eventType, session, profile, scope, source, target, null, timestamp, false);
+        this(eventType, session, profile, scope, source, target, null, timestamp, true);
     }
 
     /**