mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
fix mongo connect issue, .connect no longer exists on mongojs
This commit is contained in:
parent
a08a74b95c
commit
9771a1dac1
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue