lib/middleware/forms.js
function listDeployedForms(req, res, next) {
  var projectForms = req.appformsResultPayload.data || [];
  logger.debug("Middleware: listDeployedForms: ", {connection: req.connectionOptions, projectForms: projectForms});

  //Only Want The Project Ids
  projectForms = _.map(projectForms, function(form) {
    if (_.isObject(form)) {
      return form._id;
    } else {
      return form;
    }
  });

  forms.findForms(req.connectionOptions, projectForms, formsResultHandlers(constants.resultTypes.forms, req, next));
}
function listDeployedForms(req, res, next) {
  var projectForms = req.appformsResultPayload.data || [];
  logger.debug("Middleware: listDeployedForms: ", {connection: req.connectionOptions, projectForms: projectForms});

  //Only Want The Project Ids
  projectForms = _.map(projectForms, function(form) {
    if (_.isObject(form)) {
      return form._id;
    } else {
      return form;
    }
  });

  forms.findForms(req.connectionOptions, projectForms, formsResultHandlers(constants.resultTypes.forms, req, next));
}
function listDeployedForms ( req , res , next ) { var projectForms = req . appformsResultPayload . data || [ ] ; logger . debug ( "Middleware: listDeployedForms: " , { connection : req . connectionOptions , projectForms : projectForms } ) ; //Only Want The Project Ids projectForms = _ . map ( projectForms , function ( form ) { if ( _ . isObject ( form ) ) { return form . _id ; } else { return form ; } } ) ; forms . findForms ( req . connectionOptions , projectForms , formsResultHandlers ( constants . resultTypes . forms , req , next ) ) ; }
Listing Forms Deployed To An Environment
@param req
@param res
@param next
Listing Forms Deployed To An Environment