Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lo script di importazione non chiude la connessione Mongoose #89

Open
albertocottica opened this issue Feb 26, 2017 · 1 comment
Open
Assignees
Labels

Comments

@albertocottica
Copy link
Member

I dati vengono importati ugualmente, ma poi la connessione rimane aperta. Lo script di importazione deve essere interrotto manualmente e genera molti errori del tipo Unhandled rejection ReferenceError: doc is not defined

@piersoft
Copy link
Contributor

var mepCounterLast=0;

e poi:
.then(function(doc){
mepCounterLast +=1;
console.log("added MEP.id=" + doc.mep_userId);
if (mepCounterLast===mep_left) db.close();
})

vado a far un commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants