You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var user = new User(data);
user.save(function(err){
})
Is this like work ?
var mongooseObserver = require('mongoose-observer')
mongooseObserver.register('User', 'save', function(createdUser){
// this callback will be executed when a new user is created
// Do something here, for example, send a email to the created user
});
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: