From d8c1c64fe24404fa2e6d79d56ff8a70a78c81266 Mon Sep 17 00:00:00 2001 From: Adham Farrag Date: Wed, 10 Jan 2024 04:34:02 +0800 Subject: [PATCH] fix: nitro util template --- src/templates/typeScriptFiles.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/templates/typeScriptFiles.ts b/src/templates/typeScriptFiles.ts index 27715e4..1615e9e 100644 --- a/src/templates/typeScriptFiles.ts +++ b/src/templates/typeScriptFiles.ts @@ -37,6 +37,7 @@ export const defineWrappedResponseHandler = ( ): EventHandler => defineEventHandler(async (event) => { try { + const response = await handler(event) return { response } } catch (err) { // Error handling