lib/impl/dataTargets.js
function list(connections, params, cb) {
  async.waterfall([
    function findDataTargets(cb) {
      lookUpDataTargets(connections, {
        query: {},
        lean: true
      }, function(err, dataTargets) {
        if (err) {
          return cb(buildErrorResponse({
            error: err,
            userDetail: "Unexpected Error When Searching For A Data Target",
            code: ERROR_CODES.FH_FORMS_UNEXPECTED_ERROR
          }));
        }

        return cb(undefined, dataTargets);
      });
    }
  ], cb);
}
function list(connections, params, cb) {
  async.waterfall([
    function findDataTargets(cb) {
      lookUpDataTargets(connections, {
        query: {},
        lean: true
      }, function(err, dataTargets) {
        if (err) {
          return cb(buildErrorResponse({
            error: err,
            userDetail: "Unexpected Error When Searching For A Data Target",
            code: ERROR_CODES.FH_FORMS_UNEXPECTED_ERROR
          }));
        }

        return cb(undefined, dataTargets);
      });
    }
  ], cb);
}
function list ( connections , params , cb ) { async . waterfall ( [ function findDataTargets ( cb ) { lookUpDataTargets ( connections , { query : { } , lean : true } , function ( err , dataTargets ) { if ( err ) { return cb ( buildErrorResponse ( { error : err , userDetail : "Unexpected Error When Searching For A Data Target" , code : ERROR_CODES . FH_FORMS_UNEXPECTED_ERROR } ) ) ; } return cb ( undefined , dataTargets ) ; } ) ; } ] , cb ) ; }
Listing All Data Targets. In The Environment, this will include the current cache data.
@param connections
@param params
@param cb
Listing All Data Targets . In The Environment this will include the current cache data .