aloux-iam 0.0.118 → 0.0.120
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.
|
@@ -8,6 +8,7 @@ self.create = async (req, res) => {
|
|
|
8
8
|
try {
|
|
9
9
|
req.body.createdAt = new Date().getTime();
|
|
10
10
|
req.body.lastUpdate = req.body.createdAt;
|
|
11
|
+
req.body.status = "status";
|
|
11
12
|
|
|
12
13
|
if (req.body.environment && req.body.environment.length > 1) {
|
|
13
14
|
for (let i in req.body.environment) {
|
|
@@ -73,6 +74,7 @@ self.retrieveMyCompany = async (req, res) => {
|
|
|
73
74
|
};
|
|
74
75
|
const retrieve = await Business.find(query, {
|
|
75
76
|
name: 1,
|
|
77
|
+
imgUrl: 1,
|
|
76
78
|
id: 1,
|
|
77
79
|
environment: 1,
|
|
78
80
|
}).lean();
|
package/lib/controllers/user.js
CHANGED
|
@@ -135,7 +135,11 @@ self.retrieve = async (req, res) => {
|
|
|
135
135
|
try {
|
|
136
136
|
let result = await User.find({})
|
|
137
137
|
.select("-pwd -tokens")
|
|
138
|
-
.populate(
|
|
138
|
+
.populate([
|
|
139
|
+
{ path: "_functions" },
|
|
140
|
+
{ path: "_company" },
|
|
141
|
+
{ path: "_business" },
|
|
142
|
+
])
|
|
139
143
|
.sort({ createdAt: -1 })
|
|
140
144
|
.lean();
|
|
141
145
|
|