code: function getStatusUpdater(connections, isAsync) {
    return function updateExportStatus(statusUpdate, cb) {
      cb = cb || _.noop;
      if (isAsync) {
        updateCSVExportStatus(connections, statusUpdate, cb);
      } else {
        return cb();
      }
    };
  }
docs: 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