diff --git a/src/logged.ts b/src/logged.ts index 0819e30..1cd5892 100644 --- a/src/logged.ts +++ b/src/logged.ts @@ -11,9 +11,7 @@ import { ScopedLogger } from "./logger"; import { LoggedParamReflectData, ReturnsReflectData, - ScopeKeyReflectData, returns, - scopeKey, nestLoggedMetadata, loggedParam, scopedLogger @@ -121,7 +119,6 @@ export function LoggedController(param?: any): (target: any) => void { interface FunctionMetadata { scopedLoggerInjectableParam?: number; - scopeKeys?: ScopeKeyReflectData[]; loggedParams?: LoggedParamReflectData[]; } @@ -381,12 +378,6 @@ export function LoggedFunction, R>( key ); - const scopeKeys: ScopeKeyReflectData[] = Reflect.getOwnMetadata( - scopeKey, - _target, - key - ); - const returnsData: ReturnsReflectData[] | true = Reflect.getOwnMetadata( returns, fn @@ -399,7 +390,6 @@ export function LoggedFunction, R>( { scopedLoggerInjectableParam, loggedParams, - scopeKeys, }, key, returnsData, @@ -476,12 +466,6 @@ export function LoggedRoute, R>(route?: string, options?: P key ); - const scopeKeys: ScopeKeyReflectData[] = Reflect.getOwnMetadata( - scopeKey, - _target, - key - ); - const returnsData: ReturnsReflectData[] | true = Reflect.getOwnMetadata( returns, fn @@ -494,7 +478,6 @@ export function LoggedRoute, R>(route?: string, options?: P { scopedLoggerInjectableParam, loggedParams, - scopeKeys, }, key, returnsData, @@ -560,12 +543,6 @@ export function LoggedGuard, R>(options?: Partial, R>(options?: Partial, R>(options?: Partial, R>(options?: Partial