From 5d915dc24d00fa3f751edf1573ebfd32c4e6d79d Mon Sep 17 00:00:00 2001 From: Daniel Campagnoli Date: Tue, 10 Sep 2024 19:20:52 +0800 Subject: [PATCH] Fix IAP --- src/fastify/userMiddleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fastify/userMiddleware.ts b/src/fastify/userMiddleware.ts index 5ed09c85..3a80b147 100644 --- a/src/fastify/userMiddleware.ts +++ b/src/fastify/userMiddleware.ts @@ -14,7 +14,7 @@ export function singleUserMiddleware(req: any, _res, next: () => void): void { export function googleIapMiddleware(req: any, _res, next: () => void) { // It would be nicer if the health-check was earlier in the chain. Maybe when nextauthjs integration is done. - if (req.raw.url.startsWith('/webhooks/' || req.raw.url === DEFAULT_HEALTHCHECK)) { + if (req.raw.url.startsWith('/webhooks/') || req.raw.url === DEFAULT_HEALTHCHECK) { next(); return; }