lib/storage/dataset-clients.js
function doReadDatasetClient(datasetClientId, cb) {
  debug('doReadDatasetClient datasetClientId = %s', datasetClientId);
  var col = mongoClient.collection(DATASETCLIENTS_COLLECTION);
  col.findOne({id: datasetClientId}, function(err, datasetClient) {
    if (err) {
      debugError('Failed to read datasetClient due to error %s :: datasetClientId = %s', err, datasetClientId);
    }
    return cb(err, datasetClient);
  });
}
function doReadDatasetClient(datasetClientId, cb) {
  debug('doReadDatasetClient datasetClientId = %s', datasetClientId);
  var col = mongoClient.collection(DATASETCLIENTS_COLLECTION);
  col.findOne({id: datasetClientId}, function(err, datasetClient) {
    if (err) {
      debugError('Failed to read datasetClient due to error %s :: datasetClientId = %s', err, datasetClientId);
    }
    return cb(err, datasetClient);
  });
}
function doReadDatasetClient ( datasetClientId , cb ) { debug ( 'doReadDatasetClient datasetClientId = %s' , datasetClientId ) ; var col = mongoClient . collection ( DATASETCLIENTS_COLLECTION ) ; col . findOne ( { id : datasetClientId } , function ( err , datasetClient ) { if ( err ) { debugError ( 'Failed to read datasetClient due to error %s :: datasetClientId = %s' , err , datasetClientId ) ; } return cb ( err , datasetClient ) ; } ) ; }
Read the dataset client from db
@param {String} datasetClientId the id of the datasetClient
@param {Function} cb
Read the dataset client from db