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:
commit
6210288085
1 changed files with 7 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue