Skip to content

Commit

Permalink
Remove groupBy when counting rows for pagination (feathersjs-ecosyste…
Browse files Browse the repository at this point in the history
  • Loading branch information
gmercey authored and evilbuck committed Feb 11, 2022
1 parent 3035489 commit d923636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ class Service extends AdapterService {

if (count) {
const countColumns = groupByColumns || (Array.isArray(this.id) ? this.id.map(idKey => `${this.Model.tableName}.${idKey}`) : [`${this.Model.tableName}.${this.id}`]);
const countQuery = this._createQuery(params);
const countQuery = this._createQuery(params).clear('groupBy');

if (query.$joinRelation) {
countQuery
Expand Down

0 comments on commit d923636

Please sign in to comment.