usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject [36/50] [abbrv] git commit: removing all devices hack
Date Mon, 20 Oct 2014 13:47:04 GMT
removing all devices hack


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

Branch: refs/heads/two-dot-o-events
Commit: 09faf5b1947c541f48210016addb37febcced2bb
Parents: f7ab174
Author: Shawn Feldman <sfeldman@apache.org>
Authored: Fri Oct 17 16:51:42 2014 -0600
Committer: Shawn Feldman <sfeldman@apache.org>
Committed: Fri Oct 17 16:51:42 2014 -0600

----------------------------------------------------------------------
 .../usergrid/services/notifications/NotificationsService.java    | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/09faf5b1/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 ee5c1cb..d63ef7d 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
@@ -176,9 +176,7 @@ public class NotificationsService extends AbstractCollectionService {
             org.apache.usergrid.persistence.index.query.Query query = sp.getQuery();
             if (query == null) {
                 query = new Query();
-                if(!sp.isName() ||  (sp.isName() && !sp.getName().equals("notifications")))
{
-                    query.addIdentifier(sp.getIdentifier());
-                }
+                query.addIdentifier(sp.getIdentifier());
             }
             query.setLimit(PAGE);
             query.setCollection(collection);


Mime
View raw message