Skip to content

Commit

Permalink
Updating to reload packages each time as replication can leave UI out…
Browse files Browse the repository at this point in the history
… of sync if running cluster....Potential performance issue but for this type of data and number of results meh
  • Loading branch information
Patrick Walker committed Sep 28, 2016
1 parent 4081460 commit 553f204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/service/packageManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = function PackageManager() {

function _getPrivatePackages() {
var packages = [];

privatePackageStore.loadPackages();
for(var packageName in privatePackageStore.packages) {
if(privatePackageStore.packages.hasOwnProperty(packageName)) {
var item = privatePackageStore.packages[packageName];
Expand Down
2 changes: 1 addition & 1 deletion lib/service/packageStores/privatePackageStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = function PackageStore() {
getPackage: _getPackage,
registerPackages: _registerPackages,
removePackages: _removePackages,

loadPackages: _loadPackages,
searchPackage: _searchPackage,
persistPackage: _persistPackage,
persistPackages: _persistPackages
Expand Down

0 comments on commit 553f204

Please sign in to comment.