Skip to content

Commit

Permalink
[Runtime] fix(lambda): module is already declared
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Nov 10, 2023
1 parent 489f7d3 commit d8ea110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ const _splitHandlerString = function(handler) {
};

const [ moduleRoot, moduleAndHandler ] = _moduleRootAndHandler(awsHandler);
const [ module ] = _splitHandlerString(moduleAndHandler);
const [ moduleName ] = _splitHandlerString(moduleAndHandler);

const file = require.resolve(join(awsLambdaTaskRoot, moduleRoot, module));
const file = require.resolve(join(awsLambdaTaskRoot, moduleRoot, moduleName));

let runtime = nullish(process.env.APP_RUNTIME, () => Jymfony.Component.Runtime.JymfonyRuntime);
const reflection = new ReflectionClass(runtime);
Expand Down

0 comments on commit d8ea110

Please sign in to comment.