Skip to content

Commit

Permalink
Add missing argument in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Grégoire Weber committed Apr 21, 2017
1 parent 4e1aef9 commit edb7430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var customClientData = {
}
};

barracks.getDevicePackages(packages, customClientData).then(function (packagesInfo) {
barracks.getDevicePackages(unitId, packages, customClientData).then(function (packagesInfo) {
packagesInfo.available.forEach(function (packageInfo) {
// Do something with the newly available packages
});
Expand Down Expand Up @@ -147,7 +147,7 @@ var packages = [
}
];

barracks.getDevicePackages(packages, customClientData).then(function (packagesInfo) {
barracks.getDevicePackages(unitId, packages, customClientData).then(function (packagesInfo) {
var downloadAvailablePackagesPromise = Promise.all(
packagesInfo.available.map(function (packageInfo) {
return packageInfo.download('/tmp/' + package.filename); // Return a Promise
Expand Down

0 comments on commit edb7430

Please sign in to comment.