Skip to content

Commit 0837487

Browse files
committed
Fix
1 parent 53798f6 commit 0837487

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/api/routes/roomRequests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const roomRequestRoutes: FastifyPluginAsync = async (fastify, _options) => {
174174
"createdAt#status": `${createdAt}#${request.body.status}`,
175175
}),
176176
dynamoAttribute: "attachmentS3key",
177-
dynamoPendingAttributeName: "pendingAttachmentS3key",
177+
dynamoPendingAttribute: "pendingAttachmentS3key",
178178
},
179179
});
180180
}

src/s3UploadConfirmer/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def lambda_handler(event: Dict[str, Any], context: Any) -> Dict[str, Any]:
2121
- dynamoTable: DynamoDB table name
2222
- dynamoPrimaryKey: JSON string of primary key
2323
- dynamoAttribute: Target attribute name to set with value from pending attribute
24-
- dynamoPendingAttributeName: Source pending attribute name to remove
24+
- dynamopendingattribute: Source pending attribute name to remove
2525
"""
2626
try:
2727
# Process each S3 event record
@@ -58,7 +58,7 @@ def process_s3_record(record: Dict[str, Any]) -> None:
5858
dynamo_table = metadata.get("dynamotable")
5959
dynamo_primary_key_json = metadata.get("dynamoprimarykey")
6060
dynamo_attribute = metadata.get("dynamoattribute")
61-
dynamo_pending_attribute = metadata.get("dynamopendingattributename")
61+
dynamo_pending_attribute = metadata.get("dynamopendingattribute")
6262

6363
# Validate required metadata - exit early if any are missing
6464
if not dynamo_table:
@@ -74,7 +74,7 @@ def process_s3_record(record: Dict[str, Any]) -> None:
7474
return
7575

7676
if not dynamo_pending_attribute:
77-
logger.warning(f"Missing dynamoPendingAttributeName metadata for {key}")
77+
logger.warning(f"Missing dynamopendingattribute metadata for {key}")
7878
return
7979

8080
# Parse primary key

0 commit comments

Comments
 (0)