Tuesday, 3 September 2013

Using sails.js and activator package

Using sails.js and activator package

guys. I have a some problem. I try to use this package
(https://npmjs.org/package/activator) with sails.js models. Dut i getting
this error -
/var/www/web/insights-platform/node_modules/activator/lib/activator.js:112
model.save(id,{activation_code:code},cb);
^
TypeError: Object [object Object] has no method 'save'
at async.waterfall.mailer.code
(/var/www/web/insights-platform/node_modules/activator/lib/activator.js:112:13)
at fn
(/var/www/web/insights-platform/node_modules/activator/node_modules/async/lib/async.js:579:34)
at Object._onImmediate
(/var/www/web/insights-platform/node_modules/activator/node_modules/async/lib/async.js:495:34)
at processImmediate [as _immediateCallback] (timers.js:330:15)How can
i fix it?

No comments:

Post a Comment