fix(polar): filter out custom products
This commit is contained in:
@@ -61,7 +61,9 @@ async function main() {
|
||||
sorting: ['price_amount'],
|
||||
});
|
||||
return products.result.items.filter((product) => {
|
||||
return product.metadata.custom !== true;
|
||||
return (
|
||||
product.metadata.custom !== 'true' && product.metadata.custom !== true
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,9 @@ export async function getProducts() {
|
||||
sorting: ['price_amount'],
|
||||
});
|
||||
return products.result.items.filter((product) => {
|
||||
return product.metadata.custom !== true;
|
||||
return (
|
||||
product.metadata.custom !== 'true' && product.metadata.custom !== true
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user