Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit 926cd76

Browse files
author
Chau Tran
committed
fix(automapper.module.ts): make automapper module global
1 parent 67157ec commit 926cd76

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/automapper.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { AutoMapper } from '@nartc/automapper';
2-
import { DynamicModule, Logger, Module } from '@nestjs/common';
2+
import { DynamicModule, Global, Logger, Module } from '@nestjs/common';
33
import { OnModuleInit } from '@nestjs/common/interfaces';
44
import { AutomapperExplorer } from './automapper.explorer';
55
import { forRootProviders } from './automapper.provider';
66
import { AutomapperModuleRootOptions } from './interfaces';
77
import { MAPPER_MAP, MapperMap } from './utils/mapperMap';
88
import { PROFILE_MAP, ProfileMap } from './utils/profileMap';
99

10+
@Global()
1011
@Module({})
1112
export class AutomapperModule implements OnModuleInit {
1213
private static readonly logger: Logger = new Logger('AutomapperModule');

0 commit comments

Comments
 (0)