Skip to content

Commit

Permalink
fix: incorrect function name
Browse files Browse the repository at this point in the history
  • Loading branch information
rphelan committed Jul 24, 2020
1 parent 3a081ed commit 12561b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class ServerlessLambdaEdgePreExistingCloudFront {
const versions = await this.provider.request('Lambda', 'listVersionsByFunction', args)

if (versions.NextMarker !== null) {
return await this.getlatestVersion(functionName, versions.NextMarker)
return await this.getlatestVersionLambdaArn(functionName, versions.NextMarker)
}
let arn
versions.Versions.forEach(async (functionObj) => {
Expand Down

0 comments on commit 12561b4

Please sign in to comment.