Skip to content
This repository was archived by the owner on Jul 11, 2019. It is now read-only.

Commit e5b3d6e

Browse files
committed
Merge branch 'hotfix/1.3.3'
2 parents d1a7053 + d2405a0 commit e5b3d6e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/mixins/pagination-meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = function (Model, options) {
2626
const limit = parseInt(_.get(ctx.args, 'filter.limit', false));
2727
const where = _.get(ctx.args, 'filter.where', {});
2828

29-
Model.count(where)
29+
Model.count(where, ctx.args.options)
3030
.then(countResources => {
3131
const pages = limit ? Math.ceil(countResources / limit) : 1;
3232
ctx.result = {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dynamox/loopback-utilities",
3-
"version": "1.3.2",
3+
"version": "1.3.3",
44
"description": "Loopback utilities",
55
"main": "index.js",
66
"repository": {
@@ -32,4 +32,4 @@
3232
"loopback"
3333
],
3434
"author": "Thiago Oliveira <thiago@dynamox.net>"
35-
}
35+
}

0 commit comments

Comments
 (0)