lib/middleware/forms.js
function updateSubscribers(req, res, next) {
  var updateSubscribersParams = {
    _id: req.params.id
  };

  var subscribers = req.body.subscribers;

  logger.debug("Middleware: listSubscribers: ", {params: updateSubscribersParams, subscribers: subscribers});

  forms.updateNotifications(_.extend(req.connectionOptions, updateSubscribersParams), subscribers, formsResultHandlers(constants.resultTypes.forms, req, next));
}
function updateSubscribers(req, res, next) {
  var updateSubscribersParams = {
    _id: req.params.id
  };

  var subscribers = req.body.subscribers;

  logger.debug("Middleware: listSubscribers: ", {params: updateSubscribersParams, subscribers: subscribers});

  forms.updateNotifications(_.extend(req.connectionOptions, updateSubscribersParams), subscribers, formsResultHandlers(constants.resultTypes.forms, req, next));
}
function updateSubscribers ( req , res , next ) { var updateSubscribersParams = { _id : req . params . id } ; var subscribers = req . body . subscribers ; logger . debug ( "Middleware: listSubscribers: " , { params : updateSubscribersParams , subscribers : subscribers } ) ; forms . updateNotifications ( _ . extend ( req . connectionOptions , updateSubscribersParams ) , subscribers , formsResultHandlers ( constants . resultTypes . forms , req , next ) ) ; }
Update The Subscribers Associated With A Form
@param req
@param res
@param next
Update The Subscribers Associated With A Form