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

Commit 8a58f02

Browse files
author
Chau Tran
committed
fix(automapper.provider.ts): trigger build
1 parent 04193eb commit 8a58f02

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/automapper.provider.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ export const forFeatureProviders = (
3030
options: AutomapperModuleFeatureOptions
3131
): Provider[] => {
3232
const token = getMapperToken(options ? options.name : '');
33-
const mapper = MapperMap.has(token)
33+
const _mapper = MapperMap.has(token)
3434
? (MapperMap.get(token) as AutoMapper)
3535
: new AutoMapper();
3636

37-
options.profiles.forEach(mapper.addProfile.bind(mapper));
38-
!MapperMap.has(token) && MapperMap.set(token, mapper);
37+
options.profiles.forEach(_mapper.addProfile.bind(_mapper));
38+
!MapperMap.has(token) && MapperMap.set(token, _mapper);
3939

4040
return [
4141
{
4242
provide: token,
43-
useValue: mapper,
43+
useValue: _mapper,
4444
},
4545
];
4646
};

0 commit comments

Comments
 (0)