diff --git a/src/api/web/api.js b/src/api/web/api.js index b02d1c3b8..a464e8d97 100644 --- a/src/api/web/api.js +++ b/src/api/web/api.js @@ -45,7 +45,7 @@ module.exports = function(config, auth, storage) { packages, function(pkg, cb) { auth.allow_access(pkg.name, req.remote_user, function(err, allowed) { - async.setImmediate(function() { + setImmediate(function() { if (err) { cb(null, false); } else {