Skip to content

Commit

Permalink
Fix CountRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
cchantep committed Oct 10, 2016
1 parent 9f048ce commit 5128c4f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reactive-mongo/src/main/scala/Request.scala
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ object CountRequest {
def unapply(q: Request): Option[(String, List[(String, BSONValue)])] =
q match {
case Request(col, SimpleBody(("count", BSONString(_)) ::
("query", ValueDocument(query)) :: Nil)) Some(col query)
("query", ValueDocument(query)) :: _)) Some(col query)
// TODO: limit

case _ None
}
}
Expand Down

0 comments on commit 5128c4f

Please sign in to comment.