mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-07 08:09:01 +02:00
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:
committed by
Copybot
parent
3b48b32754
commit
02fa5c3a99
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user