@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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
64
|
+
const [, count] = await userRepository.findAndCount({});
|
|
65
|
+
return count;
|
|
65
66
|
}
|
|
66
67
|
};
|
|
67
68
|
|