@react-pakistan/util-functions 1.22.84 → 1.22.86

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.
@@ -107,29 +107,15 @@ const postQuoteInvoice = (_d) => __awaiter(void 0, [_d], void 0, function* ({ ca
107
107
  services: true,
108
108
  },
109
109
  });
110
- yield (products === null || products === void 0 ? void 0 : products.forEach((_f) => __awaiter(void 0, [_f], void 0, function* ({ id: _id }) {
110
+ yield (products === null || products === void 0 ? void 0 : products.forEach((_f) => __awaiter(void 0, [_f], void 0, function* ({ id: _id, productQuantity }) {
111
111
  yield prisma.quotesInvoicesOnStellarProducts.create({
112
112
  data: {
113
113
  quoteInvoiceId: quoteInvoice === null || quoteInvoice === void 0 ? void 0 : quoteInvoice.id,
114
114
  productId: _id,
115
- // productQuantity,
116
- },
117
- include: {
118
- quoteInvoice: true,
119
- product: true,
115
+ productQuantity,
120
116
  },
121
117
  });
122
118
  })));
123
- // await prisma.quotesInvoicesOnStellarProducts.create({
124
- // data: {
125
- // quoteInvoiceId: quoteInvoice.id,
126
- // productId: productIds[0].id,
127
- // },
128
- // include: {
129
- // product: true,
130
- // quoteInvoice: true,
131
- // },
132
- // });
133
119
  }
134
120
  else {
135
121
  quoteInvoice = yield prisma.quoteInvoice.create({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.22.84",
3
+ "version": "1.22.86",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {