From b41a0b3b958e7da35b234f3815f2a94bb08505a9 Mon Sep 17 00:00:00 2001 From: 0xsysr3ll <0xsysr3ll@pm.me> Date: Sun, 7 Dec 2025 20:32:56 +0100 Subject: [PATCH] fix(webpush): remove backend checks Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me> --- src/utils/pushSubscriptionHelpers.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/utils/pushSubscriptionHelpers.ts b/src/utils/pushSubscriptionHelpers.ts index eb23e873..daed3dab 100644 --- a/src/utils/pushSubscriptionHelpers.ts +++ b/src/utils/pushSubscriptionHelpers.ts @@ -36,14 +36,7 @@ export const verifyPushSubscription = async ( const { subscription } = await getPushSubscription(); if (!subscription) { - try { - const { data: backendSubscriptions } = await axios.get< - UserPushSubscription[] - >(`/api/v1/user/${userId}/pushSubscriptions`); - return backendSubscriptions.length > 0; - } catch { - return false; - } + return false; } const appServerKey = subscription.options?.applicationServerKey;