You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by ta...@apache.org on 2021/01/25 11:14:00 UTC
[unomi] branch master updated: UNOMI-417: fix profile persist when
receivint multiple events that modify the profile (#240)
This is an automated email from the ASF dual-hosted git repository.
taybou 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 9f07522 UNOMI-417: fix profile persist when receivint multiple events that modify the profile (#240)
9f07522 is described below
commit 9f07522c4994bde0a987e9b23ace4b23c8272fd8
Author: kevan Jahanshahi <ke...@jahia.com>
AuthorDate: Mon Jan 25 12:13:43 2021 +0100
UNOMI-417: fix profile persist when receivint multiple events that modify the profile (#240)
---
wab/src/main/java/org/apache/unomi/web/ServletCommon.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wab/src/main/java/org/apache/unomi/web/ServletCommon.java b/wab/src/main/java/org/apache/unomi/web/ServletCommon.java
index bf700c3..6c48edd 100644
--- a/wab/src/main/java/org/apache/unomi/web/ServletCommon.java
+++ b/wab/src/main/java/org/apache/unomi/web/ServletCommon.java
@@ -96,7 +96,7 @@ public class ServletCommon {
eventToSend.getAttributes().put(Event.HTTP_RESPONSE_ATTRIBUTE, response);
logger.debug("Received event " + event.getEventType() + " for profile=" + profile.getItemId() + " session="
+ (session != null ? session.getItemId() : null) + " target=" + event.getTarget() + " timestamp=" + timestamp);
- changes = eventService.send(eventToSend);
+ changes |= eventService.send(eventToSend);
// If the event execution changes the profile we need to update it so the next event use the right profile
if ((changes & EventService.PROFILE_UPDATED) == EventService.PROFILE_UPDATED) {
profile = eventToSend.getProfile();