0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00

Fixed bug with Maximum call stack size exceeded on packages web API.

This commit is contained in:
Miroslav Pokorný 2017-09-15 12:11:16 +02:00
parent 519840761c
commit b4195b15c6

View file

@ -45,11 +45,13 @@ module.exports = function(config, auth, storage) {
packages,
function(pkg, cb) {
auth.allow_access(pkg.name, req.remote_user, function(err, allowed) {
if (err) {
cb(null, false);
} else {
cb(err, allowed);
}
async.setImmediate(function() {
if (err) {
cb(null, false);
} else {
cb(err, allowed);
}
});
});
},
function(err, packages) {