From 4a30356c7b2a13bca00977c66116df986c499a7d Mon Sep 17 00:00:00 2001 From: rtritto Date: Mon, 30 Sep 2024 20:19:40 +0200 Subject: [PATCH] fix: response in toResponse of route not found --- src/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index a27058f..94c7259 100644 --- a/src/index.ts +++ b/src/index.ts @@ -144,11 +144,7 @@ export const node = set ) - await toResponse( - res, - // @ts-ignore - await app.handleError(request, new NotFoundError(), set) - ) + return void toResponse(res, response) }) server.listen(port, (port) => {