Skip to content

Commit 482dda1

Browse files
author
Bob Strahan
committed
Fix workflow tracker to use document_id instead of input_key
1 parent bcb7ab9 commit 482dda1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lambda/workflow_tracker/index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ def handler(event, context):
223223
# Get object key from document
224224
try:
225225
if "document" in input_data:
226-
object_key = input_data["document"]["input_key"]
226+
object_key = input_data["document"]["document_id"]
227227
else:
228-
raise ValueError("Unable to find object key in input")
228+
raise ValueError("Unable to find document_id in input")
229229
except (KeyError, TypeError) as e:
230230
logger.error(f"Error extracting object_key from input: {e}")
231231
logger.error(f"Input data structure: {input_data}")

0 commit comments

Comments
 (0)