@7365admin1/core 3.32.2-staging.54 → 3.32.2-staging.55
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 +29 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8813,7 +8813,35 @@ function useUserRepo() {
|
|
|
8813
8813
|
siteCategory: { $first: "$siteInfo.category" }
|
|
8814
8814
|
}
|
|
8815
8815
|
},
|
|
8816
|
-
{ $project: { siteInfo: 0 } }
|
|
8816
|
+
{ $project: { siteInfo: 0 } },
|
|
8817
|
+
{
|
|
8818
|
+
$lookup: {
|
|
8819
|
+
from: "site.people",
|
|
8820
|
+
localField: "_id",
|
|
8821
|
+
foreignField: "user",
|
|
8822
|
+
pipeline: [
|
|
8823
|
+
{
|
|
8824
|
+
$project: {
|
|
8825
|
+
_id: 0,
|
|
8826
|
+
plateNumber: 1
|
|
8827
|
+
}
|
|
8828
|
+
}
|
|
8829
|
+
],
|
|
8830
|
+
as: "person"
|
|
8831
|
+
}
|
|
8832
|
+
},
|
|
8833
|
+
{
|
|
8834
|
+
$addFields: {
|
|
8835
|
+
plateNumber: {
|
|
8836
|
+
$first: "$person.plateNumber"
|
|
8837
|
+
}
|
|
8838
|
+
}
|
|
8839
|
+
},
|
|
8840
|
+
{
|
|
8841
|
+
$project: {
|
|
8842
|
+
person: 0
|
|
8843
|
+
}
|
|
8844
|
+
}
|
|
8817
8845
|
]).toArray();
|
|
8818
8846
|
const data = results.length > 0 ? results[0] : null;
|
|
8819
8847
|
if (!data) {
|