Merge pull request #15341 from overleaf/csh-issue-11625-mongo-ug-5-notifications

Upgrade mongodb module for notifications from 4.11.0 to 6.1.0

GitOrigin-RevId: 8e185d2d9128e2bc889bbc00a7f21fbee0f27daa
This commit is contained in:
Christopher Hoskin
2023-10-19 14:48:08 +01:00
committed by Copybot
parent 3b48b32754
commit 02fa5c3a99
5 changed files with 89 additions and 76 deletions
@@ -18,11 +18,11 @@ const logger = require('@overleaf/logger')
module.exports = {
check(callback) {
const userId = ObjectId()
const userId = new ObjectId()
const cleanupNotifications = callback =>
db.notifications.remove({ user_id: userId }, callback)
let notificationKey = `smoke-test-notification-${ObjectId()}`
let notificationKey = `smoke-test-notification-${new ObjectId()}`
const getOpts = endPath => ({
url: `http://localhost:${port}/user/${userId}${endPath}`,
timeout: 5000,