File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
libs/json-api-nestjs/src/lib/mixin/module Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ import {
1818 getProviderName ,
1919 camelToKebab ,
2020} from '../../helper' ;
21- import { JsonBaseController } from '../controller' ;
2221import { typeormMixin , transformMixin } from '../' ;
2322import {
2423 JSON_API_DECORATOR_OPTIONS ,
@@ -52,13 +51,11 @@ BaseModuleClass.forRoot = function (options): DynamicModule {
5251 controllerClass
5352 ) ;
5453
55- const resourceName = decoratorOptions ?. overrideName
56- ? decoratorOptions . overrideName
57- : `${ camelToKebab ( entityName ) } ` ;
58-
5954 const transformService = transformMixin ( entity , connectionName ) ;
6055 const serviceClass = typeormMixin ( entity , connectionName , transformService ) ;
61- Controller ( resourceName ) ( controllerClass ) ;
56+ Controller ( decoratorOptions [ 'overrideName' ] || `${ camelToKebab ( entityName ) } ` ) (
57+ controllerClass
58+ ) ;
6259 UseInterceptors ( ErrorInterceptors ) ( controllerClass ) ;
6360 Inject ( serviceClass ) ( controllerClass . prototype , 'serviceMixin' ) ;
6461 const properties = Reflect . getMetadata (
You can’t perform that action at this time.
0 commit comments