Commit b3c130c2 authored by Henry Oswald's avatar Henry Oswald
Browse files

fix mongo connect issue, .connect no longer exists on mongojs

parent 7b5b60ce
......@@ -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."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment