Skip to content

Commit

Permalink
Fix Count Query (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ewoutvans authored and phase committed Jul 27, 2018
1 parent 909d335 commit a8cdce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/db/access/ModelAccess.scala
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class ModelAccess[M <: Model](val service: ModelService,
* @param predicate The predicate to use
* @return The amount of elements that fulfill the predicate.
*/
def count(predicate: M#T => Rep[Boolean]): Future[Int] = this.service.count(modelClass, predicate)
def count(predicate: M#T => Rep[Boolean]): Future[Int] = this.service.count(modelClass, (this.baseFilter && predicate).fn)

/**
* Returns a Seq of this set.
Expand Down

0 comments on commit a8cdce1

Please sign in to comment.