diff --git a/app/api/endpoints/order.py b/app/api/endpoints/order.py index de4f2bc..9b6457b 100644 --- a/app/api/endpoints/order.py +++ b/app/api/endpoints/order.py @@ -93,9 +93,9 @@ def calculate_price(price_request: OrderPriceCalculateRequest,user: UserDB,db: S CommunityDB.id == price_request.community_id ).first() if community: - base_price = community.base_price - extra_package_price = community.extra_package_price - extra_package_threshold = community.extra_package_threshold + base_price = float(community.base_price) + extra_package_price = float(community.extra_package_price) + extra_package_threshold = int(community.extra_package_threshold) original_amount = base_price