Skip to content

The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.

fix(core): use pagination.take for limit in vendor stores response

vholik30235fcff299
diff --git a/packages/core-plugin/src/api/vendor/stores/route.ts b/packages/core-plugin/src/api/vendor/stores/route.ts
index 4794b63a7..aa74bf65d 100644
--- a/packages/core-plugin/src/api/vendor/stores/route.ts
+++ b/packages/core-plugin/src/api/vendor/stores/route.ts
@@ -22,6 +22,6 @@ export const GET = async (
stores,
count: metadata?.count ?? 0,
offset: metadata?.skip ?? 0,
- limit: metadata?.limit ?? 0,
+ limit: req.queryConfig.pagination.take ?? 0,
})
}