+1
-1
@@ -24,7 +24,7 @@ export const handleCompositeKey = (
|
||||
result[parsedFieldKey.parentFieldName][parsedFieldKey.childFieldName] = value;
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
export const parseResult = (obj: any): any => {
|
||||
if (obj === null || typeof obj !== 'object' || typeof obj === 'function') {
|
||||
|
||||
+1
-5
@@ -15,10 +15,6 @@ export interface WorkspaceQueryHookOptions {
|
||||
scope?: Scope;
|
||||
}
|
||||
|
||||
export function WorkspaceQueryHook(key: WorkspaceQueryHookKey): ClassDecorator;
|
||||
export function WorkspaceQueryHook(
|
||||
options: WorkspaceQueryHookOptions,
|
||||
): ClassDecorator;
|
||||
export function WorkspaceQueryHook(
|
||||
keyOrOptions: WorkspaceQueryHookKey | WorkspaceQueryHookOptions,
|
||||
): ClassDecorator {
|
||||
@@ -32,7 +28,7 @@ export function WorkspaceQueryHook(
|
||||
options.type = WorkspaceQueryHookType.PRE_HOOK;
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
|
||||
return (target: Function) => {
|
||||
SetMetadata(SCOPE_OPTIONS_METADATA, options)(target);
|
||||
SetMetadata(WORKSPACE_QUERY_HOOK_METADATA, options)(target);
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-function-type */
|
||||
|
||||
import { Injectable, type Type } from '@nestjs/common';
|
||||
import { Reflector } from '@nestjs/core';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user