Skip to content

Commit

Permalink
Merge pull request #543 from evershopcommerce/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
treoden authored May 22, 2024
2 parents 876b27c + 7272bea commit 39af72a
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions packages/evershop/src/lib/util/defaultPaginationFilters.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ const defaultPaginationFilters = [
const limit = currentFilters.find((f) => f.key === 'limit') || {
value: CONSTANTS.ADMIN_COLLECTION_SIZE
};
currentFilters.push({
key: 'page',
operation: 'eq',
value: page.value
});
currentFilters.push({
key: 'limit',
operation: 'eq',
value: limit.value
});
query.limit(
(parseInt(page.value, 10) - 1) * parseInt(limit.value, 10),
parseInt(limit.value, 10)
Expand Down
2 changes: 1 addition & 1 deletion packages/google_login/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@evershop/google_login",
"version": "1.0.0",
"version": "1.1.0",
"description": "A Google authentication extension for EverShop.",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/product_review/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@evershop/product_review",
"version": "1.0.2",
"version": "1.1.0",
"description": "An Evershop extension for product review",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module.exports = async function registerDefaultReviewCollectionFilters() {
{
product: (query) => query.orderBy('product_description.name'),
rating: (query) => query.orderBy('product_review.rating'),
status: (query) => query.orderBy('product_review.status')
status: (query) => query.orderBy('product_review.approved')
}
);

Expand Down
2 changes: 1 addition & 1 deletion packages/resend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@evershop/resend",
"version": "1.0.0",
"version": "1.1.0",
"description": "A Resend extension for EverShop.",
"repository": {
"type": "git",
Expand Down

0 comments on commit 39af72a

Please sign in to comment.