Skip to content

Commit

Permalink
update installedPackages on success
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-ball committed Aug 2, 2019
1 parent c1ffc27 commit 9b91bec
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ if (pkgs && (reqs === installed)) {
url: `localhost:3000?packages=${reqs}`,
method: 'GET'
}, (err, res) => {
eval(res.text());
pm.globals.set('installedPackages', reqs);
pm.globals.set('packages', res.text());
if (!err) {
eval(res.text());
pm.globals.set('installedPackages', reqs);
pm.globals.set('packages', res.text());
}
});
}
```
Expand Down

0 comments on commit 9b91bec

Please sign in to comment.