This is an automated email from the ASF dual-hosted git repository.
taybou pushed a commit to branch unomi-1.5.x
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/unomi-1.5.x by this push:
new 20a442b UNOMI-446 update session assigned rule increment action (#272)
20a442b is described below
commit 20a442bf37d7912b0c997901cad22796fc21d85e
Author: MT BENTERKI <[email protected]>
AuthorDate: Tue Mar 30 16:44:03 2021 +0200
UNOMI-446 update session assigned rule increment action (#272)
(cherry picked from commit d8e611d3f47eddbe9f74633ceb3bd1b12591c504)
---
.../src/main/resources/META-INF/cxs/rules/sessionAssigned.json | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git
a/plugins/baseplugin/src/main/resources/META-INF/cxs/rules/sessionAssigned.json
b/plugins/baseplugin/src/main/resources/META-INF/cxs/rules/sessionAssigned.json
index 9603b81..53cfef5 100644
---
a/plugins/baseplugin/src/main/resources/META-INF/cxs/rules/sessionAssigned.json
+++
b/plugins/baseplugin/src/main/resources/META-INF/cxs/rules/sessionAssigned.json
@@ -48,12 +48,10 @@
},
{
"parameterValues": {
- "setPropertyName": "properties.nbOfVisits",
- "setPropertyValue": "script::profile.properties.?nbOfVisits != null ?
(profile.properties.nbOfVisits + 1) : 1",
+ "propertyName": "nbOfVisits",
"storeInSession": false
},
- "type": "setPropertyAction"
+ "type": "incrementPropertyAction"
}
]
-
-}
\ No newline at end of file
+}