@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/dist/index.mjs CHANGED
@@ -22073,7 +22073,7 @@ function useVehicleRepo() {
22073
22073
  pipeline: [
22074
22074
  {
22075
22075
  $match: {
22076
- $expr: { $eq: [{ $toString: "$_id" }, "$$blockId"] }
22076
+ $expr: { $eq: ["$_id", "$$blockId"] }
22077
22077
  }
22078
22078
  },
22079
22079
  { $project: { _id: 1, name: 1, block: 1 } }
@@ -22089,7 +22089,7 @@ function useVehicleRepo() {
22089
22089
  pipeline: [
22090
22090
  {
22091
22091
  $match: {
22092
- $expr: { $eq: [{ $toString: "$_id" }, "$$levelId"] }
22092
+ $expr: { $eq: ["$_id", "$$levelId"] }
22093
22093
  }
22094
22094
  },
22095
22095
  { $project: { _id: 1, name: 1 } }
@@ -22101,11 +22101,11 @@ function useVehicleRepo() {
22101
22101
  {
22102
22102
  $lookup: {
22103
22103
  from: "building-units",
22104
- let: { unitId: { $toString: "$unit" } },
22104
+ let: { unitId: "$unit" },
22105
22105
  pipeline: [
22106
22106
  {
22107
22107
  $match: {
22108
- $expr: { $eq: [{ $toString: "$_id" }, "$$unitId"] }
22108
+ $expr: { $eq: ["$_id", "$$unitId"] }
22109
22109
  }
22110
22110
  },
22111
22111
  { $project: { _id: 1, name: 1 } }