From 6084333704b7c3f7640e2dc05e3994bb890ff6c7 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Fri, 16 Jan 2026 10:35:17 +0700 Subject: [PATCH] Fix findSupplierProductHubs: use team_uuid instead of supplier_uuid --- geo_app/schema.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/geo_app/schema.py b/geo_app/schema.py index 590e142..5df86c8 100644 --- a/geo_app/schema.py +++ b/geo_app/schema.py @@ -900,17 +900,17 @@ class Query(graphene.ObjectType): db = get_db() ensure_graph() - # Find offer nodes with this supplier_uuid AND product_uuid + # Find offer nodes with this team_uuid AND product_uuid aql_offers = """ FOR node IN nodes FILTER node.product_uuid == @product_uuid - FILTER node.supplier_uuid == @supplier_uuid + FILTER node.team_uuid == @team_uuid RETURN node._key """ try: cursor = db.aql.execute( aql_offers, - bind_vars={'product_uuid': product_uuid, 'supplier_uuid': supplier_uuid} + bind_vars={'product_uuid': product_uuid, 'team_uuid': supplier_uuid} ) offer_keys = list(cursor) except Exception as e: @@ -918,7 +918,7 @@ class Query(graphene.ObjectType): return [] if not offer_keys: - logger.info("No offers found for supplier %s, product %s", supplier_uuid, product_uuid) + logger.info("No offers found for team %s, product %s", supplier_uuid, product_uuid) return [] # Find hubs reachable from these offer nodes