From a3b0b5ff79144794bca1ee42c93df799461d9f63 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Fri, 16 Jan 2026 10:50:16 +0700 Subject: [PATCH] Use supplier_uuid instead of team_uuid in findSupplierProductHubs --- 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 5df86c8..590e142 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 team_uuid AND product_uuid + # Find offer nodes with this supplier_uuid AND product_uuid aql_offers = """ FOR node IN nodes FILTER node.product_uuid == @product_uuid - FILTER node.team_uuid == @team_uuid + FILTER node.supplier_uuid == @supplier_uuid RETURN node._key """ try: cursor = db.aql.execute( aql_offers, - bind_vars={'product_uuid': product_uuid, 'team_uuid': supplier_uuid} + bind_vars={'product_uuid': product_uuid, 'supplier_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 team %s, product %s", supplier_uuid, product_uuid) + logger.info("No offers found for supplier %s, product %s", supplier_uuid, product_uuid) return [] # Find hubs reachable from these offer nodes