chore(*): remove unused code (#6781)
The code removed in the PR was flagged as unused by the JetBrains inspector. I did a QA on the dev environment but other checks are highly recommended. There is one commit by scope to make the review easier. --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -1,11 +0,0 @@
|
||||
import { createParamDecorator, ExecutionContext } from '@nestjs/common';
|
||||
|
||||
import { getRequest } from 'src/utils/extract-request';
|
||||
|
||||
export const UserAbility = createParamDecorator(
|
||||
(_: unknown, context: ExecutionContext) => {
|
||||
const request = getRequest(context);
|
||||
|
||||
return request.ability;
|
||||
},
|
||||
);
|
||||
@ -3,9 +3,6 @@ import { Logger } from '@nestjs/common';
|
||||
/**
|
||||
* A decorator function that logs the execution time of the decorated method.
|
||||
*
|
||||
* @param target The target class of the decorated method.
|
||||
* @param propertyKey The name of the decorated method.
|
||||
* @param descriptor The property descriptor of the decorated method.
|
||||
* @returns The modified property descriptor with the execution time logging functionality.
|
||||
*/
|
||||
export function LogExecutionTime() {
|
||||
|
||||
Reference in New Issue
Block a user