Skip to content

Commit f23fa0d

Browse files
authored
Merge pull request #840 from hubmapconsortium/yuanzhou/fix-status-sync
Fix wrong header var
2 parents 20ee2c1 + 8c174d1 commit f23fa0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/schema/schema_triggers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,8 +1468,8 @@ def sync_component_dataset_status(property_key, normalized_type, user_token, exi
14681468
request_headers = {
14691469
'Authorization': f'Bearer {user_token}'
14701470
}
1471-
header[SchemaConstants.HUBMAP_APP_HEADER] = SchemaConstants.INGEST_API_APP
1472-
header[SchemaConstants.INTERNAL_TRIGGER] = SchemaConstants.COMPONENT_DATASET
1471+
request_headers[SchemaConstants.HUBMAP_APP_HEADER] = SchemaConstants.INGEST_API_APP
1472+
request_headers[SchemaConstants.INTERNAL_TRIGGER] = SchemaConstants.COMPONENT_DATASET
14731473
response = requests.put(url=url, headers=request_headers, json=status_body)
14741474

14751475

0 commit comments

Comments
 (0)