@react-pakistan/util-functions 1.23.9 → 1.23.11
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.
- package/api/stellar-solutions/company/index.js +1 -1
- package/api/stellar-solutions/contact/index.js +1 -1
- package/api/stellar-solutions/customer/index.js +1 -1
- package/api/stellar-solutions/expense/index.js +1 -1
- package/api/stellar-solutions/expense-category/index.js +1 -1
- package/api/stellar-solutions/lead/index.js +1 -1
- package/api/stellar-solutions/payment/index.js +1 -1
- package/api/stellar-solutions/product/index.js +1 -1
- package/api/stellar-solutions/product-category/index.js +2 -2
- package/api/stellar-solutions/profile/index.js +1 -1
- package/api/stellar-solutions/quote-invoice/index.js +1 -1
- package/package.json +1 -1
|
@@ -44,7 +44,7 @@ const postCompanies = (_c) => __awaiter(void 0, [_c], void 0, function* ({ prism
|
|
|
44
44
|
},
|
|
45
45
|
where: queryWhere,
|
|
46
46
|
take: pageLimit,
|
|
47
|
-
skip: currentPage
|
|
47
|
+
skip: (currentPage - 1) * pageLimit,
|
|
48
48
|
}),
|
|
49
49
|
]);
|
|
50
50
|
return companies;
|
|
@@ -49,7 +49,7 @@ const postContacts = (_c) => __awaiter(void 0, [_c], void 0, function* ({ curren
|
|
|
49
49
|
},
|
|
50
50
|
where: queryWhere,
|
|
51
51
|
take: pageLimit,
|
|
52
|
-
skip: currentPage
|
|
52
|
+
skip: (currentPage - 1) * pageLimit,
|
|
53
53
|
}),
|
|
54
54
|
]);
|
|
55
55
|
return contacts;
|
|
@@ -55,7 +55,7 @@ const postCustomers = (_d) => __awaiter(void 0, [_d], void 0, function* ({ curre
|
|
|
55
55
|
},
|
|
56
56
|
where: queryWhere,
|
|
57
57
|
take: pageLimit,
|
|
58
|
-
skip: currentPage
|
|
58
|
+
skip: (currentPage - 1) * pageLimit,
|
|
59
59
|
}),
|
|
60
60
|
]);
|
|
61
61
|
return customers;
|
|
@@ -49,7 +49,7 @@ const postExpenses = (_c) => __awaiter(void 0, [_c], void 0, function* ({ curren
|
|
|
49
49
|
},
|
|
50
50
|
where: queryWhere,
|
|
51
51
|
take: pageLimit,
|
|
52
|
-
skip: currentPage
|
|
52
|
+
skip: (currentPage - 1) * pageLimit,
|
|
53
53
|
}),
|
|
54
54
|
]);
|
|
55
55
|
return expenses;
|
|
@@ -49,7 +49,7 @@ const postLeads = (_c) => __awaiter(void 0, [_c], void 0, function* ({ currentPa
|
|
|
49
49
|
},
|
|
50
50
|
where: queryWhere,
|
|
51
51
|
take: pageLimit,
|
|
52
|
-
skip: currentPage
|
|
52
|
+
skip: (currentPage - 1) * pageLimit,
|
|
53
53
|
}),
|
|
54
54
|
]);
|
|
55
55
|
return leads;
|
|
@@ -43,7 +43,7 @@ const postPayments = (_c) => __awaiter(void 0, [_c], void 0, function* ({ curren
|
|
|
43
43
|
},
|
|
44
44
|
where: queryWhere,
|
|
45
45
|
take: pageLimit,
|
|
46
|
-
skip: currentPage
|
|
46
|
+
skip: (currentPage - 1) * pageLimit,
|
|
47
47
|
}),
|
|
48
48
|
]);
|
|
49
49
|
return payments;
|
|
@@ -52,7 +52,7 @@ const postProducts = (_c) => __awaiter(void 0, [_c], void 0, function* ({ curren
|
|
|
52
52
|
},
|
|
53
53
|
where: queryWhere,
|
|
54
54
|
take: pageLimit,
|
|
55
|
-
skip: currentPage
|
|
55
|
+
skip: (currentPage - 1) * pageLimit,
|
|
56
56
|
}),
|
|
57
57
|
]);
|
|
58
58
|
return products;
|
|
@@ -48,12 +48,12 @@ const postProductCategories = (_c) => __awaiter(void 0, [_c], void 0, function*
|
|
|
48
48
|
},
|
|
49
49
|
where: queryWhere,
|
|
50
50
|
take: pageLimit,
|
|
51
|
-
skip: currentPage
|
|
51
|
+
skip: (currentPage - 1) * pageLimit,
|
|
52
52
|
}),
|
|
53
53
|
]);
|
|
54
54
|
}
|
|
55
55
|
catch (err) {
|
|
56
|
-
|
|
56
|
+
return err;
|
|
57
57
|
}
|
|
58
58
|
return productCategories;
|
|
59
59
|
});
|
|
@@ -49,7 +49,7 @@ const postProfiles = (_d) => __awaiter(void 0, [_d], void 0, function* ({ curren
|
|
|
49
49
|
},
|
|
50
50
|
where: queryWhere,
|
|
51
51
|
take: pageLimit,
|
|
52
|
-
skip: currentPage
|
|
52
|
+
skip: (currentPage - 1) * pageLimit,
|
|
53
53
|
}),
|
|
54
54
|
]);
|
|
55
55
|
return profiles;
|
|
@@ -61,7 +61,7 @@ const postQuotesInvoices = (_c) => __awaiter(void 0, [_c], void 0, function* ({
|
|
|
61
61
|
},
|
|
62
62
|
where: queryWhere,
|
|
63
63
|
take: pageLimit,
|
|
64
|
-
skip: currentPage
|
|
64
|
+
skip: (currentPage - 1) * pageLimit,
|
|
65
65
|
}),
|
|
66
66
|
]);
|
|
67
67
|
return quotesInvoices;
|