Skip to content

Commit

Permalink
fix: resolve function name variables
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed Dec 9, 2024
1 parent 73c6f73 commit d7453e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stack/rosStack/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ export const resolveFunctions = (
}
const fileSources = functions
?.filter(({ code }) => readCodeSize(code) > CODE_ZIP_SIZE_LIMIT)
.map(({ code, name }) => ({ fcName: name, ...getFileSource(name, code) }));
.map(({ code, name }) => {
const fcName = replaceReference(name, context);

return { fcName, ...getFileSource(fcName, code) };
});

let destinationBucket: oss.Bucket;
if (!isEmpty(fileSources)) {
Expand Down

0 comments on commit d7453e0

Please sign in to comment.