@react-pakistan/util-functions 1.23.4 → 1.23.6

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({
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,
@@ -192,7 +192,7 @@ export interface ProfileBE {
192
192
  userId: string;
193
193
  }
194
194
  export interface QuoteInvoiceBE {
195
- category: 'QUOTE' | 'INVOICE';
195
+ category: 'Quote' | 'Invoice';
196
196
  company: CompanyBE;
197
197
  createdAt: string;
198
198
  currency: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.23.4",
3
+ "version": "1.23.6",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {