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 15:50:11 UTC

[unomi] 01/01: UNOMI-330 Events non-persistant by default Fixed by making them persistent by default.

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

shuber pushed a commit to branch UNOMI-330-events-not-persisted
in repository https://gitbox.apache.org/repos/asf/unomi.git

commit e6c884ade10349f3306bc47fdc0bce597d76444b
Author: Serge Huber <sh...@apache.org>
AuthorDate: Tue Apr 28 17:50:04 2020 +0200

    UNOMI-330 Events non-persistant by default
    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);
     }
 
     /**