@react-pakistan/util-functions 1.23.5 → 1.23.7

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.
@@ -31,7 +31,7 @@ const getPaymentById = (_b) => __awaiter(void 0, [_b], void 0, function* ({ id,
31
31
  exports.getPaymentById = getPaymentById;
32
32
  const postPayments = (_c) => __awaiter(void 0, [_c], void 0, function* ({ currentPage, pageLimit, prisma, queryWhere, }) {
33
33
  const payments = yield prisma.$transaction([
34
- prisma.payment.count({
34
+ prisma.payment.findMany({
35
35
  where: queryWhere,
36
36
  }),
37
37
  prisma.payment.findMany({
@@ -50,15 +50,15 @@ const postPayments = (_c) => __awaiter(void 0, [_c], void 0, function* ({ curren
50
50
  });
51
51
  exports.postPayments = postPayments;
52
52
  const postPayment = (_d) => __awaiter(void 0, [_d], void 0, function* ({ amount, attachment, createdAt, currency, date, description, id, mode, paymentType, prisma, quoteInvoiceId, ref, }) {
53
- const allPaymentsForInvoice = yield prisma.payments.findMany({
54
- where: {
55
- quoteInvoiceId,
56
- },
57
- include: {
58
- quoteInvoice: true,
59
- },
60
- });
61
- console.log('=>', allPaymentsForInvoice);
53
+ // const allPaymentsForInvoice = await prisma.payments.findMany({
54
+ // where: {
55
+ // quoteInvoiceId,
56
+ // },
57
+ // include: {
58
+ // quoteInvoice: true,
59
+ // },
60
+ // });
61
+ // console.log('=>', allPaymentsForInvoice);
62
62
  const payment = yield prisma.payment.upsert({
63
63
  where: {
64
64
  id,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.23.5",
3
+ "version": "1.23.7",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {