Skip to content

Commit

Permalink
fix issue with double callback
Browse files Browse the repository at this point in the history
  • Loading branch information
jfromaniello committed Apr 1, 2016
1 parent 7ee9470 commit 01f80c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions connector-setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ exports.run = function (workingPath, callback) {
provisioningTicket, cb);
},
function (cb) {
console.log('Connector setup complete.');
if (nconf.get('OVERRIDE_CONFIG')) {
nconf.save(cb);
return nconf.save(cb);
}
console.log('Connector setup complete.');
cb();
}
], function (err) {
Expand Down
2 changes: 2 additions & 0 deletions lib/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ var db = levelup(nconf.get('CACHE_FILE'));

db = ttl(db, { checkFrequency: 100});

console.log('Cache enabled');

module.exports = {
groups: spaces(db, 'groups')
};
1 change: 0 additions & 1 deletion lib/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ var Users = module.exports = function(disable_caching){
this._binder = ldap_clients.binder;

if (typeof disable_caching === 'undefined' || !disable_caching) {
console.log('Cache enabled');
this._groupsCache = require('./cache').groups;
}
};
Expand Down

0 comments on commit 01f80c2

Please sign in to comment.