Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ce89d6c

Browse files
committed
there is going to be a string of terrible commit messages while i fix this and the world will have to accept this
1 parent cdd4f1c commit ce89d6c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

server/migrations/moveBucket.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ mongoose.connection.on('error', () => {
2424
// },
2525
// });
2626

27-
const numProjects = Project.count({});
28-
console.log(numProjects);
29-
process.exit(0);
27+
Project.count({})
28+
.exec().then((err, count) => {
29+
console.log(count);
30+
process.exit(0);
31+
});
3032

3133
// Project.find({}, (err, projects) => {
3234
// projects.forEach((project, projectIndex) => {

0 commit comments

Comments
 (0)