@react-pakistan/util-functions 1.22.61 → 1.22.63

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,11 @@ products, phone, lastName, firstName, email, country, city, address, prisma, })
92
92
  data: mappedServices,
93
93
  },
94
94
  },
95
+ products: {
96
+ create: {
97
+ data: products,
98
+ },
99
+ },
95
100
  },
96
101
  include: {
97
102
  products: true,
@@ -200,22 +205,22 @@ products, phone, lastName, firstName, email, country, city, address, prisma, })
200
205
  // console.log('err', err);
201
206
  }
202
207
  }
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
- }
208
+ // if (quoteInvoice) {
209
+ // console.log('=>>>>>', quoteInvoice);
210
+ // products.map(async (product) => {
211
+ // await prisma.quotesInvoicesOnStellarProducts.create({
212
+ // data: {
213
+ // quoteInvoiceId: quoteInvoice?.id,
214
+ // productId: product.id,
215
+ // productQuantity: product.productQuantity,
216
+ // },
217
+ // include: {
218
+ // product: true,
219
+ // quoteInvoice: true,
220
+ // },
221
+ // });
222
+ // });
223
+ // }
219
224
  return quoteInvoice;
220
225
  });
221
226
  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.63",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {