usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mru...@apache.org
Subject usergrid git commit: Fix default value for saveReceipts property on Notifications.
Date Thu, 14 Apr 2016 23:28:53 GMT
Repository: usergrid
Updated Branches:
  refs/heads/release-2.1.1 2e344cb73 -> 22a8d0595


Fix default value for saveReceipts property on Notifications.


Project: http://git-wip-us.apache.org/repos/asf/usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/usergrid/commit/22a8d059
Tree: http://git-wip-us.apache.org/repos/asf/usergrid/tree/22a8d059
Diff: http://git-wip-us.apache.org/repos/asf/usergrid/diff/22a8d059

Branch: refs/heads/release-2.1.1
Commit: 22a8d0595b49b2934ee208cd3fd60e272cd9601e
Parents: 2e344cb
Author: Michael Russo <mrusso@apigee.com>
Authored: Fri Apr 15 01:28:48 2016 +0200
Committer: Michael Russo <mrusso@apigee.com>
Committed: Fri Apr 15 01:28:48 2016 +0200

----------------------------------------------------------------------
 .../usergrid/services/notifications/NotificationsService.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/usergrid/blob/22a8d059/stack/services/src/main/java/org/apache/usergrid/services/notifications/NotificationsService.java
----------------------------------------------------------------------
diff --git a/stack/services/src/main/java/org/apache/usergrid/services/notifications/NotificationsService.java
b/stack/services/src/main/java/org/apache/usergrid/services/notifications/NotificationsService.java
index 824089a..05c1cd7 100644
--- a/stack/services/src/main/java/org/apache/usergrid/services/notifications/NotificationsService.java
+++ b/stack/services/src/main/java/org/apache/usergrid/services/notifications/NotificationsService.java
@@ -139,7 +139,8 @@ public class NotificationsService extends AbstractCollectionService {
         try {
             validate(null, context.getPayload());
             Notification.PathTokens pathTokens = getPathTokens(context.getRequest().getOriginalParameters());
-            context.getProperties().put("saveReceipts", true); // default saving of receipts
+            // default saving of receipts
+            context.getProperties().put("saveReceipts", context.getProperties().getOrDefault("saveReceipts",
true));
             context.getProperties().put("processingFinished", 0L); // defaulting processing
finished to 0
             context.getProperties().put("state", Notification.State.CREATED);
             context.getProperties().put("pathQuery", pathTokens);


Mime
View raw message