From 5c60e7b2fc74cad75294169181ebf9cb93f322b9 Mon Sep 17 00:00:00 2001
From: Taha Cherfia <taha.cherfia@holi.team>
Date: Mon, 27 Jan 2025 16:25:28 +0100
Subject: [PATCH] HOLI-10686: fix handler return type

---
 app/server.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/server.ts b/app/server.ts
index be59d10..f8ba4e3 100644
--- a/app/server.ts
+++ b/app/server.ts
@@ -142,7 +142,7 @@ export type GraphQLServer = any
 export const startServer = (config: ServerConfig): Promise<void> => {
   const graphQLServer: GraphQLServer = createGraphQLServer(config)
 
-  const handler = async (request: Request): Promise<Response> => {
+  const handler = (request: Request): Response => {
     const url = new URL(request.url)
 
     if (url.pathname === '/health') {
-- 
GitLab