From 8635e4b5dac2cb1a43077e861b4573e7a70f8fda Mon Sep 17 00:00:00 2001 From: Shinwoo PARK Date: Thu, 27 Mar 2025 01:22:26 +0900 Subject: [PATCH] fix: remove fastify support in non-fastify packjage --- packages/nestlogged/src/logged/override.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nestlogged/src/logged/override.ts b/packages/nestlogged/src/logged/override.ts index 5c02b01..fd057bb 100644 --- a/packages/nestlogged/src/logged/override.ts +++ b/packages/nestlogged/src/logged/override.ts @@ -111,11 +111,11 @@ export function overrideBuild, R>( } // If this is ExecutionContext based function (e.g. Guard, Interceptor) get Request from Context - if (type === 'guard' || type === 'interceptor') { + if (type === 'guard' || type === 'interceptor' || type === 'middleware') { const context = args[0] as ExecutionContext; if (context.getType() === 'http') { const req = context.switchToHttp().getRequest(); - route = /* supporting FastifyRequest */ req.raw ? req.raw.url : req.url; + route = req.url; } }