Fix: resolve_offer_to_hub call in resolve_route_to_coordinate (same graphene self=None bug)
All checks were successful
Build Docker Image / build (push) Successful in 1m27s

This commit is contained in:
Ruslan Bakiev
2026-01-26 16:28:39 +07:00
parent 0c19135c49
commit 17081e13e4
3 changed files with 172 additions and 1 deletions

View File

@@ -1677,7 +1677,8 @@ class Query(graphene.ObjectType):
logger.info("Found nearest hub %s to coordinates (%.3f, %.3f)", hub_uuid, lat, lon)
# Use existing offer_to_hub logic
return self.resolve_offer_to_hub(info, offer_uuid, hub_uuid)
# Note: in graphene, self is None (root value), so we call as class method
return Query.resolve_offer_to_hub(Query, info, offer_uuid, hub_uuid)
except Exception as e:
logger.error("Error finding route to coordinates: %s", e)
return None