@7365admin1/module-hygiene 4.19.0 → 4.20.0

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
@@ -4805,7 +4805,7 @@ function useSupplyRepository() {
4805
4805
  throw new BadRequestError18("Invalid site ID format.");
4806
4806
  }
4807
4807
  if (search) {
4808
- query.$text = { $search: search };
4808
+ query.name = { $regex: search, $options: "i" };
4809
4809
  cacheOptions.search = search;
4810
4810
  }
4811
4811
  const cacheKey = makeCacheKey6(namespace_collection, cacheOptions);
@@ -5554,7 +5554,7 @@ function useCheckOutItemRepository() {
5554
5554
  throw new BadRequestError25("Invalid site ID format.");
5555
5555
  }
5556
5556
  if (search) {
5557
- query.$text = { $search: search };
5557
+ query.supplyName = { $regex: search, $options: "i" };
5558
5558
  cacheOptions.search = search;
5559
5559
  }
5560
5560
  const cacheKey = makeCacheKey8(namespace_collection, cacheOptions);