Merge pull request #17586 from overleaf/dp-fix-IEEE-script

Fix notification deletion in IEEE script

GitOrigin-RevId: cb921f87290202e3116aeafc3341d3bff782d6fa
This commit is contained in:
David 2024-03-19 09:48:48 +00:00 committed by Copybot
parent d40186248d
commit af7ca5d212

View file

@ -85,9 +85,9 @@ async function main() {
// First we remove all existing Collabratec retirement notifications // First we remove all existing Collabratec retirement notifications
if (COMMIT) { if (COMMIT) {
await NotificationsBuilder.promises await db.notifications.deleteMany({
.ieeeCollabratecRetirement() key: 'notification-ieee-collabratec-retirement',
.deleteAllUnread() })
} }
let totalUsers = 0 let totalUsers = 0