0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00

Merge pull request #326 from miroslavpokorny/Fix_Maximum_call_stack_size_exceeded

fix: bug with Maximum call stack size exceeded on packages web API.
This commit is contained in:
Juan Picado @jotadeveloper 2017-09-23 09:27:08 +02:00 committed by GitHub
commit 6210288085

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);
}
setImmediate(function() {
if (err) {
cb(null, false);
} else {
cb(err, allowed);
}
});
});
},
function(err, packages) {