OutlierVentures / BuyCoPoc

BuyCo.io Proof of Concept on an Ethereum blockchain
Apache License 2.0
0 stars 1 forks source link

Filtering: max price should be less than, not equals #36

Closed AronVanAmmers closed 8 years ago

AronVanAmmers commented 8 years ago

Filtering for max price works, but it only finds proposals with exactly that price. The parameters are passed to Mongo as {maxPrice: n} which makes it an "equals" filter. Should be "less or equal than" (see Mongoose shorthands for those kinds of queries).

bartvanderwal commented 8 years ago

Ok! Makes sense, just couldn't test yet so far, so didn't notice. #MockWorksLikeThat:) #ImOnIt