@react-pakistan/util-functions 1.22.81 → 1.22.83

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.
@@ -108,19 +108,16 @@ products, createdAt, phone, lastName, firstName, email, country, city, address,
108
108
  products: true,
109
109
  },
110
110
  });
111
- products === null || products === void 0 ? void 0 : products.forEach((_f) => __awaiter(void 0, [_f], void 0, function* ({ id: _id, productQuantity }) {
111
+ const res = yield (products === null || products === void 0 ? void 0 : products.forEach((_f) => __awaiter(void 0, [_f], void 0, function* ({ id: _id, productQuantity }) {
112
112
  yield prisma.quotesInvoicesOnStellarProducts.create({
113
113
  data: {
114
114
  quoteInvoiceId: quoteInvoice === null || quoteInvoice === void 0 ? void 0 : quoteInvoice.id,
115
115
  productId: _id,
116
116
  productQuantity,
117
117
  },
118
- include: {
119
- product: true,
120
- quoteInvoice: true,
121
- },
122
118
  });
123
- }));
119
+ })));
120
+ console.log('->', res);
124
121
  // await prisma.quotesInvoicesOnStellarProducts.create({
125
122
  // data: {
126
123
  // quoteInvoiceId: quoteInvoice.id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.22.81",
3
+ "version": "1.22.83",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {