Skip to content

Commit

Permalink
fix: resolve issue with applying patches
Browse files Browse the repository at this point in the history
  • Loading branch information
joshje committed Nov 29, 2016
1 parent 60b7b07 commit e2002c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/commands/protect/index.js
Expand Up @@ -48,7 +48,7 @@ function patch(policy, options) {
e.code = 'ALREADY_PATCHED';
throw e;
}
return protect.patch(res, !options['dry-run']);
return protect.patch(res.vulnerabilities, !options['dry-run']);
}).then(function () {
analytics.add('success', true);
return 'Successfully applied Snyk patches';
Expand Down

0 comments on commit e2002c7

Please sign in to comment.