@provis/provis-common-be-module 2.2.7 → 2.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -278,7 +278,7 @@ class MainRepository extends typeorm_1.Repository {
278
278
  manager.query(rawCount),
279
279
  manager.query(`${rawQueryWithFilter} ${rawOrder} LIMIT $1 OFFSET $2`, [limit, offset]),
280
280
  ]);
281
- return [countResult.length, dataResult];
281
+ return [(countResult[0].total || 0), dataResult];
282
282
  });
283
283
  }
284
284
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provis/provis-common-be-module",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "description": "This common module for Provis internal backend use lib",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {