Skip to content

Commit

Permalink
fix: added check for undefined dependsOn (#7363)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshbhu committed May 20, 2021
1 parent 76d8d22 commit 9caad85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Expand Up @@ -23,6 +23,12 @@ const allResources = [
service: 'AppSync',
providerPlugin: 'awscloudformation',
},
{
build: true,
providerPlugin: 'awscloudformation',
service: 'Lambda',
resourceName: 'fn1',
},
{
build: true,
providerPlugin: 'awscloudformation',
Expand Down
Expand Up @@ -16,6 +16,7 @@ export async function lambdasWithApiDependency(
resource =>
resource.service === ServiceName.LambdaFunction &&
resource.mobileHubMigrated !== true &&
resource.dependsOn !== undefined &&
resource.dependsOn.find(val => val.category === 'api'),
);

Expand Down

0 comments on commit 9caad85

Please sign in to comment.