Fixed ability to query tasks collection using task ID. Fixes #68.

This commit is contained in:
Zaid Abdulla committed 2015-05-26 12:54:04 +03:00
1 parent 4ad8aa5a1b
commit 305558f186
2 files changed
+27

No files matched your search

+1
View File
@@ -343,6 +343,7 @@ listener = (request, response) ->
else
q = {}
q = query.expand(q, aliases) if collectionName is 'devices'
q = query.substituteObjectId(q) if collectionName is 'tasks'
if urlParts.query.projection?
projection = {}