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

  var projectConfigToImport = req.body || [];

  if (!_.isArray(projectConfigToImport)) {
    return next("Expected An Array Of Project Config Values");
  }

  forms.importAppConfig(options, projectConfigToImport, formsResultHandlers(constants.resultTypes.formProjects, req, next));
}
function importProjectConfig(req, res, next) {
  var options = req.connectionOptions;

  var projectConfigToImport = req.body || [];

  if (!_.isArray(projectConfigToImport)) {
    return next("Expected An Array Of Project Config Values");
  }

  forms.importAppConfig(options, projectConfigToImport, formsResultHandlers(constants.resultTypes.formProjects, req, next));
}
function importProjectConfig ( req , res , next ) { var options = req . connectionOptions ; var projectConfigToImport = req . body || [ ] ; if ( ! _ . isArray ( projectConfigToImport ) ) { return next ( "Expected An Array Of Project Config Values" ) ; } forms . importAppConfig ( options , projectConfigToImport , formsResultHandlers ( constants . resultTypes . formProjects , req , next ) ) ; }
Importing Project Config.
@param req
@param res
@param next
Importing Project Config .