fix(webpush): remove the redundant userId check

Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me>
This commit is contained in:
0xsysr3ll
2025-12-07 15:27:15 +01:00
parent 2447c385f4
commit 194e33a19a

View File

@@ -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(