mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-07 17:42:39 +00:00
[misc] migrate the health-check to the native mongo driver, drop mongojs
This commit is contained in:
parent
d77834ab55
commit
74a3a95dc6
3 changed files with 121 additions and 663 deletions
|
@ -11,7 +11,7 @@
|
|||
* DS207: Consider shorter variations of null checks
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||
*/
|
||||
const { ObjectId } = require('mongojs')
|
||||
const { db, ObjectId } = require('./mongodb')
|
||||
const request = require('request')
|
||||
const async = require('async')
|
||||
const _ = require('underscore')
|
||||
|
@ -19,12 +19,6 @@ const settings = require('settings-sharelatex')
|
|||
const { port } = settings.internal.notifications
|
||||
const logger = require('logger-sharelatex')
|
||||
|
||||
const mongojs = require('mongojs')
|
||||
const Settings = require('settings-sharelatex')
|
||||
const db = mongojs(Settings.mongo != null ? Settings.mongo.url : undefined, [
|
||||
'notifications'
|
||||
])
|
||||
|
||||
module.exports = {
|
||||
check(callback) {
|
||||
const user_id = ObjectId()
|
||||
|
|
775
services/notifications/package-lock.json
generated
775
services/notifications/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -26,7 +26,6 @@
|
|||
"method-override": "^3.0.0",
|
||||
"metrics-sharelatex": "^2.6.2",
|
||||
"mongodb": "^3.6.0",
|
||||
"mongojs": "^3.1.0",
|
||||
"node-statsd": "0.1.1",
|
||||
"request": "^2.88.2",
|
||||
"settings-sharelatex": "^1.1.0",
|
||||
|
|
Loading…
Add table
Reference in a new issue