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:
parent
cdd4f1c29b
commit
ce89d6cc78
1 changed files with 5 additions and 3 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue