Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Commit

Permalink
fix(map): invoke type with 'new' when registering map fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcq committed Sep 9, 2019
1 parent a1b7e10 commit c928b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/decorators/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function (fieldConfig: IFieldConfig): Function {
const field = FieldUtils.configure(
fieldConfig,
key,
type(),
new type(),
FieldTypes.Map);
const repository = getOrCreateRepository(target.constructor.name);
repository.fields.set(key, field);
Expand Down

0 comments on commit c928b43

Please sign in to comment.