Simplify
This commit is contained in:
parent
2dce93640d
commit
c9990e9d30
@ -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(
|
||||
|
Reference in New Issue
Block a user