0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -05:00

error not raised when updating versions - fix #10

This commit is contained in:
Alex Kocharin 2013-10-08 22:55:32 +04:00
parent 7a3255d1ab
commit 94d37441ae

View file

@ -371,9 +371,11 @@ Storage.prototype.get_package = function(name, callback) {
msg: 'no such package available' msg: 'no such package available'
})); }));
} }
callback(null, result);
self.local.update_versions(name, result, function(){}); self.local.update_versions(name, result, function(err) {
if (err) return callback(err);
callback(null, result);
});
}); });
} }