mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
fix mongo connect issue, .connect no longer exists on mongojs
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user