Skip to content

Commit e73249f

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

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);
1312
}
1413
};
1514
const token = metatype.name + JSON.stringify(data);
1615
Object.defineProperty(type, 'name', { value: token });
16+
Object.assign(type.prototype, data);
1717
return type;
1818
}
1919
};

0 commit comments

Comments
 (0)