jsdb-server
Version:
JSDB Written using Chrome's V8, implemented in Node.js. Having as its main objectives to be: simple, minimalist and effective for data persistence. In addition to easy integration with other programming languages.
23 lines (17 loc) • 504 B
JavaScript
const /* Declaring imports */
_ = require('underscore'),
_holder = require('./../storage/holder'),
_path = require('./../storage/path'),
_identity = require('./../storage/identity');
module.exports = {
roles : [ 'grantAll', 'grantAddInstance' ],
execute : function(transaction, callback) {
_holder.readObject(_identity.DATA_HOLDER_IDENTITY, _path.buildCredentialsFileDir(), (err, users) => {
if(err){
callback(err);
return;
}
callback(_.noop(), users);
});
}
}