lib/middleware/formProjects.js
function importProjects(req, res, next) {
  var options = req.connectionOptions;

  var appFormsToImport = req.body || [];

  if (!_.isArray(appFormsToImport)) {
    return next("Expected An Array Of App Form Entries");
  }

  forms.importAppForms(options, appFormsToImport, formsResultHandlers(constants.resultTypes.formProjects, req, next));
}
function importProjects(req, res, next) {
  var options = req.connectionOptions;

  var appFormsToImport = req.body || [];

  if (!_.isArray(appFormsToImport)) {
    return next("Expected An Array Of App Form Entries");
  }

  forms.importAppForms(options, appFormsToImport, formsResultHandlers(constants.resultTypes.formProjects, req, next));
}
function importProjects ( req , res , next ) { var options = req . connectionOptions ; var appFormsToImport = req . body || [ ] ; if ( ! _ . isArray ( appFormsToImport ) ) { return next ( "Expected An Array Of App Form Entries" ) ; } forms . importAppForms ( options , appFormsToImport , formsResultHandlers ( constants . resultTypes . formProjects , req , next ) ) ; }
Importing All App Forms
@param req
@param res
@param next
Importing All App Forms