From 8c174d14ef666f1866ccd1f815e6750fe3b3816d Mon Sep 17 00:00:00 2001 From: yuanzhou Date: Mon, 7 Apr 2025 12:36:16 -0400 Subject: [PATCH] Fix wrong header var --- src/schema/schema_triggers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schema/schema_triggers.py b/src/schema/schema_triggers.py index 92c2f62e..de46213f 100644 --- a/src/schema/schema_triggers.py +++ b/src/schema/schema_triggers.py @@ -1468,8 +1468,8 @@ def sync_component_dataset_status(property_key, normalized_type, user_token, exi request_headers = { 'Authorization': f'Bearer {user_token}' } - header[SchemaConstants.HUBMAP_APP_HEADER] = SchemaConstants.INGEST_API_APP - header[SchemaConstants.INTERNAL_TRIGGER] = SchemaConstants.COMPONENT_DATASET + request_headers[SchemaConstants.HUBMAP_APP_HEADER] = SchemaConstants.INGEST_API_APP + request_headers[SchemaConstants.INTERNAL_TRIGGER] = SchemaConstants.COMPONENT_DATASET response = requests.put(url=url, headers=request_headers, json=status_body)