Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = advisors;
- function advisors(options, callback) {
- return new advisors.Advisors(options, callback);
- }
- advisors.Advisors = function(options, callback) {
- var self = this;
- module.exports.Super.call(this, options, null);
- self._apos.mixinModuleEmail(self);
- self.beforeSave = function(req, snippet, callback) {
- console.log('look at my body', req.body, req.category);
- req.tags = req.category;
- callback();
- };
- self.afterSubmission = function(req, snippet, callback) {
- // some stuff that runs here works very well (:
- };
- // Must wait at least until next tick to invoke callback!
- if (callback) {
- process.nextTick(function() { return callback(null); });
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement