there is going to be a string of terrible commit messages while i fix this and the world will have to accept this

This commit is contained in:
Cassie Tarakajian 2017-12-26 21:55:56 -05:00
parent cdd4f1c29b
commit ce89d6cc78

View file

@ -24,9 +24,11 @@ mongoose.connection.on('error', () => {
// },
// });
const numProjects = Project.count({});
console.log(numProjects);
process.exit(0);
Project.count({})
.exec().then((err, count) => {
console.log(count);
process.exit(0);
});
// Project.find({}, (err, projects) => {
// projects.forEach((project, projectIndex) => {