Skip to content

Commit 1fcce88

Browse files
author
kamil.mysliwiec
committed
Hotfix
1 parent aee22a2 commit 1fcce88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/utils/provide-values.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ export const ProvideValues = <T extends Constructor<{}>>(data) => {
99
const type = class extends metatype {
1010
constructor(...args) {
1111
super(args);
12+
Object.assign(this, data);
1213
}
1314
};
1415
const token = metatype.name + JSON.stringify(data);
1516
Object.defineProperty(type, 'name', { value: token });
16-
Object.assign(type.prototype, data);
1717
return type;
1818
}
1919
};

0 commit comments

Comments
 (0)