Skip to content

Commit a5e89c5

Browse files
committed
fix(translation): correctly display expired files in web ui when deleted
- Update DynamoDB query path in lifecycle.ts to use correct nested structure `$.parseS3Key.Output.result.jobId.value` instead of `$.parseS3Key.jobId.value` - Fix segmentFileName path in parseS3Key.ts to access value property correctly `$.segmentFileName.value[0]` instead of `$.segmentFileName[0]`
1 parent 13987a4 commit a5e89c5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

infrastructure/lib/features/translation/lifecycle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class dt_translationLifecycle extends Construct {
5252
table: props.jobTable,
5353
key: {
5454
id: tasks.DynamoAttributeValue.fromString(
55-
sfn.JsonPath.stringAt("$.parseS3Key.jobId.value"),
55+
sfn.JsonPath.stringAt("$.parseS3Key.Output.result.jobId.value"),
5656
),
5757
},
5858
updateExpression:

infrastructure/lib/features/translation/parseS3Key.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class dt_parseS3Key extends Construct {
156156
{
157157
resultPath: "$.result.language",
158158
parameters: {
159-
value: sfn.JsonPath.stringAt("$.segmentFileName[0]"),
159+
value: sfn.JsonPath.stringAt("$.segmentFileName.value[0]"),
160160
},
161161
},
162162
);

0 commit comments

Comments
 (0)