Skip to content

Commit 4b12047

Browse files
authored
Fix Param able to buy
1 parent f574a1e commit 4b12047

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎app/services/product.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get(cls, id: PyObjectId) -> ProductInDB | None:
6161

6262
@classmethod
6363
def get_enable_to_buy(cls, id: PyObjectId) -> ProductInDB | None:
64-
item = cls.TABLE.find_one({"_id": id, "disabled": False, "enable_to_buy": True})
64+
item = cls.TABLE.find_one({"_id": id, "disabled": False, "able_to_buy": True})
6565
if item is not None:
6666
return ProductInDB(**item)
6767
return item

0 commit comments

Comments
 (0)