From b3c130c268eef21ebfeebe234f048962522a837e Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 31 Jan 2018 11:04:58 +0000 Subject: [PATCH] fix mongo connect issue, .connect no longer exists on mongojs --- Gruntfile.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 7a3e8d3ca3..7fb8881930 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -182,7 +182,7 @@ module.exports = (grunt) -> checkMongoConnect: (callback = (error) ->) -> grunt.log.write "Checking can connect to mongo" mongojs = require("mongojs") - db = mongojs.connect(settings.mongo.url, ["tags"]) + db = mongojs(settings.mongo.url, ["tags"]) db.runCommand { ping: 1 }, (err, res) -> if !err and res.ok grunt.log.write "OK."