Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Fix Gulp throwing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ilanbiala committed Mar 6, 2015
1 parent 71c4d4b commit 6f09033
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,17 @@ gulp.task('less', function () {
gulp.task('openMongoose', function (done) {
var mongoose = require('./config/lib/mongoose.js');

mongoose.connect(done);
mongoose.connect(function() {
done();
});
});

gulp.task('closeMongoose', function (done) {
var mongoose = require('./config/lib/mongoose.js');

mongoose.disconnect(done);
mongoose.disconnect(function(err) {
done(err);
});
});

// Mocha tests task
Expand Down

0 comments on commit 6f09033

Please sign in to comment.