Skip to content

Commit f7d0693

Browse files
Robin BuschmannRobin Buschmann
authored andcommitted
fixes #3
1 parent b419627 commit f7d0693

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/services/models.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ export function getAttributes(target: any): any|undefined {
4646
const attributes = Reflect.getMetadata(ATTRIBUTES_KEY, target);
4747

4848
if (attributes) {
49-
return deepAssign({}, attributes);
49+
50+
return Object.keys(attributes).reduce((copy, key) => {
51+
52+
copy[key] = Object.assign({}, attributes[key]);
53+
54+
return copy;
55+
}, {});
5056
}
5157
}
5258

0 commit comments

Comments
 (0)