From 3531f0cd6a85e2fd3225298b6cec55d30222fb43 Mon Sep 17 00:00:00 2001 From: summerscar Date: Mon, 18 Nov 2024 14:37:03 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(subscribe):=20update=20same?= =?UTF-8?q?=20endpoint=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/push/subscribe/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/push/subscribe/route.ts b/app/api/push/subscribe/route.ts index e8b1661..b1036bd 100644 --- a/app/api/push/subscribe/route.ts +++ b/app/api/push/subscribe/route.ts @@ -30,7 +30,7 @@ export async function POST(request: Request) { const existingSubscription = ( await keystoneContext.sudo().db.PushSubscription.findMany({ where: { - endpoint: subscription.endpoint, + endpoint: { equals: subscription.endpoint }, }, }) )[0];