Merge pull request #32402 from overleaf/jpa-auto-close-debug

[web] auto-close notification on old debug projects

GitOrigin-RevId: 6a33da9da2995e83400c73eecaf07ada2fb2505c
This commit is contained in:
Maria Florencia Besteiro Gonzalez
2026-03-30 15:14:49 +02:00
committed by Copybot
parent 0544aded40
commit ec8ef1cc5e
2 changed files with 4 additions and 2 deletions

View File

@@ -241,7 +241,7 @@ function personalAndGroupSubscriptions(userId) {
function oldDebugProjects(userId) {
return {
key: `old-debug-projects-${userId}`,
async create(userId) {
async create() {
return await NotificationsHandler.promises.createNotification(
userId,
this.key,

View File

@@ -642,7 +642,9 @@ async function _checkForOldDebugProjects(userId) {
7
)
if (exists) {
await NotificationsBuilder.promises.oldDebugProjects(userId).create(userId)
await NotificationsBuilder.promises.oldDebugProjects(userId).create()
} else {
await NotificationsBuilder.promises.oldDebugProjects(userId).read()
}
}