@react-pakistan/util-functions 1.24.95 → 1.24.97

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.
@@ -96,20 +96,15 @@ var listProduct = function (_a) { return __awaiter(void 0, [_a], void 0, functio
96
96
  fullText: searchQuery,
97
97
  });
98
98
  where = {
99
- OR: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], idSearchQuery, true), nameSearchQuery, true), refSearchQuery, true), [
100
- {
101
- buyPrice: {
102
- lte: buyPriceMin ? buyPriceMin : undefined,
103
- gte: buyPriceMax ? buyPriceMax : undefined,
104
- },
105
- },
106
- {
107
- salePrice: {
108
- lte: salePriceMin ? salePriceMin : undefined,
109
- gte: salePriceMax ? salePriceMax : undefined,
110
- },
111
- },
112
- ], false),
99
+ buyPrice: {
100
+ lte: buyPriceMin ? Number(buyPriceMin) : undefined,
101
+ gte: buyPriceMax ? Number(buyPriceMax) : undefined,
102
+ },
103
+ salePrice: {
104
+ lte: salePriceMin ? Number(salePriceMin) : undefined,
105
+ gte: salePriceMax ? Number(salePriceMax) : undefined,
106
+ },
107
+ OR: __spreadArray(__spreadArray(__spreadArray([], idSearchQuery, true), nameSearchQuery, true), refSearchQuery, true),
113
108
  };
114
109
  return [4 /*yield*/, prisma.$transaction([
115
110
  prisma.product.count({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.24.95",
3
+ "version": "1.24.97",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {