@meridianjs/user 0.1.1 → 0.1.2

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.
package/dist/index.js CHANGED
@@ -87,7 +87,8 @@ var UserModuleService = class extends (0, import_framework_utils3.MeridianServic
87
87
  /** Return the total number of registered users. */
88
88
  async countUsers() {
89
89
  const userRepository = this.container.resolve("userRepository");
90
- return userRepository.count({});
90
+ const [, count] = await userRepository.findAndCount({});
91
+ return count;
91
92
  }
92
93
  };
93
94
 
package/dist/index.mjs CHANGED
@@ -61,7 +61,8 @@ var UserModuleService = class extends MeridianService({ User: user_default, Team
61
61
  /** Return the total number of registered users. */
62
62
  async countUsers() {
63
63
  const userRepository = this.container.resolve("userRepository");
64
- return userRepository.count({});
64
+ const [, count] = await userRepository.findAndCount({});
65
+ return count;
65
66
  }
66
67
  };
67
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meridianjs/user",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Meridian user module — User and Team domain models",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",