diff --git a/src/hooks.server.ts b/src/hooks.server.ts index 17372c1..dc43d27 100644 --- a/src/hooks.server.ts +++ b/src/hooks.server.ts @@ -24,9 +24,9 @@ export const handle: Handle = async ({ event, resolve }) => { // make requestId available to handlers event.locals.requestId = requestId; - const { executionTime, result: response } = await timedExecution(async () => { - return await resolve(event); - }); + const { executionTime, result: response } = await timedExecution( + async () => await resolve(event) + ); response.headers.set(requestIdHeader, requestId); log.info( diff --git a/src/index.test.ts b/src/lib/index.test.ts similarity index 100% rename from src/index.test.ts rename to src/lib/index.test.ts