aloux-iam 0.0.18 → 0.0.19

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.
@@ -163,6 +163,8 @@ self.me = async (req, res) => {
163
163
  // { path: "_functions", populate: [{ path: "_permissions" }, { path: "_menus" }] },
164
164
  // ]).lean()
165
165
 
166
+ const _id = req.user._id
167
+
166
168
  // Valida que los modelos existan hantes de hacer una consulta con populate
167
169
  if (mongoose.modelNames().includes('Business') && mongoose.modelNames().includes('Client')) {
168
170
  user = await User.findOne({ _id }).populate([{ path: "_functions", populate: [{ path: "_permissions" }, { path: "_menus" }] },{ path: "_business" }, { path: "_client" }]).select("-pwd -tokens").lean()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aloux-iam",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "Aloux IAM for APIs ",
5
5
  "main": "index.js",
6
6
  "scripts": {