mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
Sort getAllProducts by -updated_at when using a taxonomy
This commit is contained in:
@@ -49,7 +49,7 @@ export default function getAllProductsOperation({
|
|||||||
const first = getAllProductsVariables.first
|
const first = getAllProductsVariables.first
|
||||||
const filter = !defaultProductsTaxonomyId
|
const filter = !defaultProductsTaxonomyId
|
||||||
? {}
|
? {}
|
||||||
: { filter: { taxons: defaultProductsTaxonomyId } }
|
: { filter: { taxons: defaultProductsTaxonomyId }, sort: '-updated_at' }
|
||||||
|
|
||||||
const variables: SpreeSdkVariables = {
|
const variables: SpreeSdkVariables = {
|
||||||
methodPath: 'products.list',
|
methodPath: 'products.list',
|
||||||
|
Reference in New Issue
Block a user