From b9b6317020b06b9345f8b3077d59141504b0c4b9 Mon Sep 17 00:00:00 2001 From: Dmitriy <32272181+Kolobok12309@users.noreply.github.com> Date: Fri, 5 Apr 2024 19:14:01 +0300 Subject: [PATCH] fix: Typo fix for support nestjs >9.0.5 fix #835 Add support of it https://github.com/nestjs/nest/commit/607654509b3a36798ade30674f12a5168ee79361 --- packages/crud/src/crud/reflection.helper.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/crud/src/crud/reflection.helper.ts b/packages/crud/src/crud/reflection.helper.ts index da1476a6..722cbcf1 100644 --- a/packages/crud/src/crud/reflection.helper.ts +++ b/packages/crud/src/crud/reflection.helper.ts @@ -1,6 +1,6 @@ import { RouteParamtypes } from '@nestjs/common/enums/route-paramtypes.enum'; import { - CUSTOM_ROUTE_AGRS_METADATA, + CUSTOM_ROUTE_ARGS_METADATA, INTERCEPTORS_METADATA, METHOD_METADATA, PARAMTYPES_METADATA, @@ -45,7 +45,7 @@ export class R { data = undefined, ): any { return { - [`${paramtype}${CUSTOM_ROUTE_AGRS_METADATA}:${index}`]: { + [`${paramtype}${CUSTOM_ROUTE_ARGS_METADATA}:${index}`]: { index, factory: (_, ctx) => R.getContextRequest(ctx)[paramtype], data,