Skip to content

Tag: node.js

Promises inside of setInterval

I’ve got this routine function that runs every 60000ms on a setInterval function. Inside of this routine function, I loop over all the usernames on a parsed JSON(db) and check whether or not they’re available via a promise (checkUsername), which is a network request. However, It’s pretty cle…

Why am I getting this deprecated warning?! MongoDB

I’m working with MongoDB in NodeJS, and when the last c.getUser statement is executed (that’s to say, when I make a SECOND connectio) Mongodb outputs this warning: But I’m not using any deprecated options. Any ideas? EDIT After a little discussion with molank in the comments, it looks like o…