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:
parent
7a3255d1ab
commit
94d37441ae
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue