fix: remove forced ExecuteContext in LoggedMiddleware
This commit is contained in:
parent
59cd199287
commit
8cb8970b9e
@ -1,5 +1,5 @@
|
|||||||
import { OverrideBuildOptions } from '../utils';
|
import { OverrideBuildOptions } from '../utils';
|
||||||
import { ExecutionContext, Logger } from '@nestjs/common';
|
import { Logger } from '@nestjs/common';
|
||||||
import { loggerInit } from '../utils';
|
import { loggerInit } from '../utils';
|
||||||
import { LoggedMetadata, nestLoggedMetadata } from '../metadata';
|
import { LoggedMetadata, nestLoggedMetadata } from '../metadata';
|
||||||
import { scopedLogger, returns, ReturnsReflectData } from '../../reflected';
|
import { scopedLogger, returns, ReturnsReflectData } from '../../reflected';
|
||||||
@ -12,7 +12,7 @@ export function LoggedMiddleware<F extends Array<any>, R>(
|
|||||||
_target: any,
|
_target: any,
|
||||||
key: string,
|
key: string,
|
||||||
descriptor: TypedPropertyDescriptor<
|
descriptor: TypedPropertyDescriptor<
|
||||||
(context: ExecutionContext, ...args: F) => R
|
(...args: F) => R
|
||||||
>,
|
>,
|
||||||
) => {
|
) => {
|
||||||
loggerInit(_target);
|
loggerInit(_target);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user