lib/impl/exportSubmissions.js
function getStatusUpdater(connections, isAsync) {
  return function updateExportStatus(statusUpdate, cb) {
    cb = cb || _.noop;
    if (isAsync) {
      updateCSVExportStatus(connections, statusUpdate, cb);
    } else {
      return cb();
    }
  };
}
function getStatusUpdater(connections, isAsync) {
  return function updateExportStatus(statusUpdate, cb) {
    cb = cb || _.noop;
    if (isAsync) {
      updateCSVExportStatus(connections, statusUpdate, cb);
    } else {
      return cb();
    }
  };
}
function getStatusUpdater ( connections , isAsync ) { return function updateExportStatus ( statusUpdate , cb ) { cb = cb || _ . noop ; if ( isAsync ) { updateCSVExportStatus ( connections , statusUpdate , cb ) ; } else { return cb ( ) ; } } ; }
Creating an updater function for export

@param connections                     Mongoose and mongodb connections
@param    {boolean} isAsync            Flag to indicated whether the CSV export is synchronous or asynchronous.
@returns {function} updateExportStatus
Creating an updater function for export