@react-pakistan/util-functions 1.22.61 → 1.22.62

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.
@@ -92,6 +92,9 @@ products, phone, lastName, firstName, email, country, city, address, prisma, })
92
92
  data: mappedServices,
93
93
  },
94
94
  },
95
+ products: {
96
+ create: products,
97
+ },
95
98
  },
96
99
  include: {
97
100
  products: true,
@@ -200,22 +203,22 @@ products, phone, lastName, firstName, email, country, city, address, prisma, })
200
203
  // console.log('err', err);
201
204
  }
202
205
  }
203
- if (quoteInvoice) {
204
- console.log('=>>>>>', quoteInvoice);
205
- products.map((product) => __awaiter(void 0, void 0, void 0, function* () {
206
- yield prisma.quotesInvoicesOnStellarProducts.create({
207
- data: {
208
- quoteInvoiceId: quoteInvoice === null || quoteInvoice === void 0 ? void 0 : quoteInvoice.id,
209
- productId: product.id,
210
- productQuantity: product.productQuantity,
211
- },
212
- include: {
213
- product: true,
214
- quoteInvoice: true,
215
- },
216
- });
217
- }));
218
- }
206
+ // if (quoteInvoice) {
207
+ // console.log('=>>>>>', quoteInvoice);
208
+ // products.map(async (product) => {
209
+ // await prisma.quotesInvoicesOnStellarProducts.create({
210
+ // data: {
211
+ // quoteInvoiceId: quoteInvoice?.id,
212
+ // productId: product.id,
213
+ // productQuantity: product.productQuantity,
214
+ // },
215
+ // include: {
216
+ // product: true,
217
+ // quoteInvoice: true,
218
+ // },
219
+ // });
220
+ // });
221
+ // }
219
222
  return quoteInvoice;
220
223
  });
221
224
  exports.postQuoteInvoice = postQuoteInvoice;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.22.61",
3
+ "version": "1.22.62",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {