salix/@salix-services/customer/common/models/message.js

9 lines
208 B
JavaScript
Raw Normal View History

2016-11-09 12:12:59 +00:00
module.exports = function(Message) {
Message.greet = function(msg, cb) {
process.nextTick(function() {
msg = msg || 'hello';
cb(null, 'Sender says ' + msg + ' to receiver');
});
};
};