@7365admin1/core 3.0.1 → 3.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/core
2
2
 
3
+ ## 3.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - b35fe2a: fix block level unit vehicle
8
+
3
9
  ## 3.0.1
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -22299,7 +22299,7 @@ function useVehicleRepo() {
22299
22299
  pipeline: [
22300
22300
  {
22301
22301
  $match: {
22302
- $expr: { $eq: [{ $toString: "$_id" }, "$$blockId"] }
22302
+ $expr: { $eq: ["$_id", "$$blockId"] }
22303
22303
  }
22304
22304
  },
22305
22305
  { $project: { _id: 1, name: 1, block: 1 } }
@@ -22315,7 +22315,7 @@ function useVehicleRepo() {
22315
22315
  pipeline: [
22316
22316
  {
22317
22317
  $match: {
22318
- $expr: { $eq: [{ $toString: "$_id" }, "$$levelId"] }
22318
+ $expr: { $eq: ["$_id", "$$levelId"] }
22319
22319
  }
22320
22320
  },
22321
22321
  { $project: { _id: 1, name: 1 } }
@@ -22327,11 +22327,11 @@ function useVehicleRepo() {
22327
22327
  {
22328
22328
  $lookup: {
22329
22329
  from: "building-units",
22330
- let: { unitId: { $toString: "$unit" } },
22330
+ let: { unitId: "$unit" },
22331
22331
  pipeline: [
22332
22332
  {
22333
22333
  $match: {
22334
- $expr: { $eq: [{ $toString: "$_id" }, "$$unitId"] }
22334
+ $expr: { $eq: ["$_id", "$$unitId"] }
22335
22335
  }
22336
22336
  },
22337
22337
  { $project: { _id: 1, name: 1 } }