Skip to content

Commit

Permalink
test: get product by slug or id from catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
nnnnat committed Jun 20, 2018
1 parent 3d87038 commit 7b645f1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions server/publications/collections/product.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,11 @@ Meteor.publish("Product", function (productIdOrHandle, shopIdOrSlug) {

// Product data for customers visiting the PDP page
const cursor = Catalog.find({
"product._id": productIdOrHandle
// "$or": [{

// } , {
// "product.slug": productIdOrHandle
// }
// ]
"$or": [{
"product._id": productIdOrHandle
}, {
"product.slug": productIdOrHandle
}]
// "product.type": "product-simple",
// "product.shopId": selector.shopId,
// "product.isVisible": true,
Expand Down

0 comments on commit 7b645f1

Please sign in to comment.