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

Commit

Permalink
fix(automapper.provider.ts): trigger build
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Nov 6, 2019
1 parent 04193eb commit 8a58f02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/automapper.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ export const forFeatureProviders = (
options: AutomapperModuleFeatureOptions
): Provider[] => {
const token = getMapperToken(options ? options.name : '');
const mapper = MapperMap.has(token)
const _mapper = MapperMap.has(token)
? (MapperMap.get(token) as AutoMapper)
: new AutoMapper();

options.profiles.forEach(mapper.addProfile.bind(mapper));
!MapperMap.has(token) && MapperMap.set(token, mapper);
options.profiles.forEach(_mapper.addProfile.bind(_mapper));
!MapperMap.has(token) && MapperMap.set(token, _mapper);

return [
{
provide: token,
useValue: mapper,
useValue: _mapper,
},
];
};

0 comments on commit 8a58f02

Please sign in to comment.