mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
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:
committed by
Copybot
parent
0544aded40
commit
ec8ef1cc5e
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user