Kaynağa Gözat

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

Henry Oswald 8 yıl önce
ebeveyn
işleme
9771a1dac1
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      server-ce/Gruntfile.coffee

+ 1 - 1
server-ce/Gruntfile.coffee

@@ -182,7 +182,7 @@ module.exports = (grunt) ->
 		checkMongoConnect: (callback = (error) ->) ->
 		checkMongoConnect: (callback = (error) ->) ->
 			grunt.log.write "Checking can connect to mongo"
 			grunt.log.write "Checking can connect to mongo"
 			mongojs = require("mongojs")
 			mongojs = require("mongojs")
-			db = mongojs.connect(settings.mongo.url, ["tags"])
+			db = mongojs(settings.mongo.url, ["tags"])
 			db.runCommand { ping: 1 }, (err, res) ->
 			db.runCommand { ping: 1 }, (err, res) ->
 				if !err and res.ok
 				if !err and res.ok
 					grunt.log.write "OK."
 					grunt.log.write "OK."