mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
getAllLiveProducts
This commit is contained in:
parent
8f8c28426b
commit
5dd476e852
@ -23,6 +23,12 @@ export async function getLiveWallProducts(query: Parameters<typeof getProducts>[
|
||||
return liveProducts;
|
||||
}
|
||||
|
||||
export async function getAllLiveProducts(query: Parameters<typeof getProducts>[0]) {
|
||||
const products = await getProducts(query);
|
||||
const liveProducts = products.filter((product) => !product.tags.includes('hidden-product'));
|
||||
return liveProducts;
|
||||
}
|
||||
|
||||
export async function getLiveCollectionProducts(query: Parameters<typeof getCollectionProducts>[0]) {
|
||||
const products = await getCollectionProducts(query);
|
||||
const liveProducts = products.filter((product) => !product.tags.includes('hidden-product'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user