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

Revert "Upgrade mongodb module for notifications from 4.11.0 to 6.1.0"

GitOrigin-RevId: 298272afa24ccb7a8543342ad09f558fc034f282
This commit is contained in:
Christopher Hoskin
2023-10-20 08:04:17 +00:00
committed by Copybot
parent 02fa5c3a99
commit 4c298c9290
5 changed files with 79 additions and 92 deletions
@@ -18,11 +18,11 @@ const logger = require('@overleaf/logger')
module.exports = {
check(callback) {
const userId = new ObjectId()
const userId = ObjectId()
const cleanupNotifications = callback =>
db.notifications.remove({ user_id: userId }, callback)
let notificationKey = `smoke-test-notification-${new ObjectId()}`
let notificationKey = `smoke-test-notification-${ObjectId()}`
const getOpts = endPath => ({
url: `http://localhost:${port}/user/${userId}${endPath}`,
timeout: 5000,