Skip to content

Commit

Permalink
fix: get ossObjectName #5
Browse files Browse the repository at this point in the history
Signed-off-by: seven <zilisheng1996@gmail.com>
  • Loading branch information
Blankll committed Dec 8, 2024
1 parent 22375a6 commit 1753652
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stack/iacStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ export class IacStack extends ros.Stack {
if (readCodeSize(fnc.code) > CODE_ZIP_SIZE_LIMIT) {
code = {
ossBucketName: destinationBucket.attrName,
ossObjectName: fileSources?.find(({ fcName }) => fcName === fnc.name)?.objectKey,
ossObjectName: fileSources?.find(
({ fcName }) => fcName === replaceReference(fnc.name, context),
)?.objectKey,
};
}
new fc.RosFunction(
Expand Down

0 comments on commit 1753652

Please sign in to comment.