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
All checks were successful
Build Docker Image / build (push) Successful in 1m27s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user