lib/middleware/formProjects.js
function updateTheme(req, res, next) {

  //No theme sent, no need update the project theme
  if (!req.body.theme) {
    return next();
  }

  var params = {
    appId: req.params.id || req.body._id,
    theme: req.body.theme
  };
  forms.setAppTheme(_.extend(req.connectionOptions, params), formsResultHandlers(constants.resultTypes.formProjects, req, next));
}
function updateTheme(req, res, next) {

  //No theme sent, no need update the project theme
  if (!req.body.theme) {
    return next();
  }

  var params = {
    appId: req.params.id || req.body._id,
    theme: req.body.theme
  };
  forms.setAppTheme(_.extend(req.connectionOptions, params), formsResultHandlers(constants.resultTypes.formProjects, req, next));
}
function updateTheme ( req , res , next ) { //No theme sent, no need update the project theme if ( ! req . body . theme ) { return next ( ) ; } var params = { appId : req . params . id || req . body . _id , theme : req . body . theme } ; forms . setAppTheme ( _ . extend ( req . connectionOptions , params ) , formsResultHandlers ( constants . resultTypes . formProjects , req , next ) ) ; }
Middleware For Updating A Theme Associated With A Project
@param req
@param res
@param next
Middleware For Updating A Theme Associated With A Project