Skip to content

Commit

Permalink
refactor(nestjs): use global option for forRoot instead of Global dec…
Browse files Browse the repository at this point in the history
…orator
  • Loading branch information
nartc committed Jan 11, 2021
1 parent a10905a commit 8f05d8f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 26 deletions.
24 changes: 0 additions & 24 deletions packages/nestjs-integration-test/src/app/app.controller.spec.ts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/nestjs/src/lib/automapper.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { DynamicModule, Global, Logger, Module } from '@nestjs/common';
import { DynamicModule, Logger, Module } from '@nestjs/common';
import { createAutomapperProviders } from './create-automapper-providers.util';
import type { AutomapperModuleOptions } from './interfaces';

@Global()
@Module({})
export class AutomapperModule {
private static readonly logger = new Logger(AutomapperModule.name);
Expand All @@ -16,6 +15,7 @@ export class AutomapperModule {

return {
module: AutomapperModule,
global: true,
providers,
exports: providers,
};
Expand Down
Empty file.
Empty file.
Empty file.

0 comments on commit 8f05d8f

Please sign in to comment.