diff --git a/services/web/app/src/Features/Notifications/NotificationsBuilder.mjs b/services/web/app/src/Features/Notifications/NotificationsBuilder.mjs index cbfac1c907..2b9c558eaf 100644 --- a/services/web/app/src/Features/Notifications/NotificationsBuilder.mjs +++ b/services/web/app/src/Features/Notifications/NotificationsBuilder.mjs @@ -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, diff --git a/services/web/app/src/Features/Project/ProjectListController.mjs b/services/web/app/src/Features/Project/ProjectListController.mjs index 750d85eed9..4a38ecc4f2 100644 --- a/services/web/app/src/Features/Project/ProjectListController.mjs +++ b/services/web/app/src/Features/Project/ProjectListController.mjs @@ -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() } }