Skip to content

Commit 0aae3a6

Browse files
author
bgagent
committed
chore(review): update package and variable
1 parent 2e34e2d commit 0aae3a6

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

cdk/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@
6161
"typescript": "^5.9.3"
6262
},
6363
"resolutions": {
64-
"eslint-plugin-import/minimatch": "^3.1.2",
65-
"@aws-sdk/s3-presigned-post/@aws-sdk/client-s3": "^3.1021.0"
64+
"eslint-plugin-import/minimatch": "^3.1.2"
6665
},
6766
"optionalDependencies": {},
6867
"engines": {

cdk/src/handlers/shared/create-task-core.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,10 @@ async function generateUploadInstructions(
739739
if (!record) continue;
740740

741741
const s3Key = `${ATTACHMENT_OBJECT_KEY_PREFIX}${userId}/${taskId}/${record.attachment_id}/${att.filename}`;
742-
const { url, fields } = await createPresignedPost(client, {
742+
// Type assertion: @aws-sdk/s3-presigned-post bundles a nested @aws-sdk/client-s3
743+
// with divergent @smithy/types declarations. The runtime is compatible; only the
744+
// type declarations conflict. Cast to `any` at the boundary.
745+
const { url, fields } = await createPresignedPost(client as any, {
743746
Bucket: ATTACHMENTS_BUCKET!,
744747
Key: s3Key,
745748
Conditions: [

0 commit comments

Comments
 (0)