From cd061481da28e6bba285cd30af92e34ba331c789 Mon Sep 17 00:00:00 2001 From: Dekel Barzilay Date: Wed, 26 May 2021 17:03:52 +0300 Subject: [PATCH] Reverted PR #150 --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index c866982..02f8c01 100644 --- a/src/index.js +++ b/src/index.js @@ -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).clear('groupBy'); + const countQuery = this._createQuery(params); if (query.$joinRelation) { countQuery