-
Notifications
You must be signed in to change notification settings - Fork 8
MongoDB connection remains open #6
Copy link
Copy link
Open
Description
Script execution never finished since connection remains open.
Tried to close connection calling destroy (which will remove sync handler from model too) but even that did not help.
var Word = require('../../models/word');
var assert = require('assert');
var word = new Word({asd: 'qwe'});
word.save({
success: function(project) {
debugger;
return console.log("We're saved!");
},
error: function(project, err) {
debugger;
return console.log('Oh no an error');
}
});
//Word.prototype.sync('destroy');Am I doing something wrong here?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels