mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
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:
committed by
Copybot
parent
02fa5c3a99
commit
4c298c9290
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user