[web] auto-close notification on old debug projects GitOrigin-RevId: 6a33da9da2995e83400c73eecaf07ada2fb2505c
@@ -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()
}