From 431fa6ba9899273aa386c194a287a9d56fe548b7 Mon Sep 17 00:00:00 2001 From: 0xsysr3ll <0xsysr3ll@pm.me> Date: Sun, 7 Dec 2025 15:27:15 +0100 Subject: [PATCH] fix(webpush): remove the redundant userId check Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me> --- src/utils/pushSubscriptionHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/pushSubscriptionHelpers.ts b/src/utils/pushSubscriptionHelpers.ts index 719df7547..d4997d8b8 100644 --- a/src/utils/pushSubscriptionHelpers.ts +++ b/src/utils/pushSubscriptionHelpers.ts @@ -116,7 +116,7 @@ export const verifyAndResubscribePushSubscription = async ( // Subscribe again to generate a fresh push subscription with updated keys and endpoint await subscribeToPushNotifications(userId, currentSettings); - if (oldEndpoint && userId) { + if (oldEndpoint) { try { await axios.delete( `/api/v1/user/${userId}/pushSubscription/${encodeURIComponent(