Skip to content

Commit 7ce03de

Browse files
authored
fix: use custom decorator on column have a property descriptor (#1070)
1 parent f16baa4 commit 7ce03de

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/model/column/column.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ export function Column(...args: any[]): Function | void {
2424
}
2525

2626
return (target: any, propertyName: string, propertyDescriptor?: PropertyDescriptor) => {
27-
annotate(target, propertyName, propertyDescriptor, args[0]);
27+
annotate(
28+
target,
29+
propertyName,
30+
propertyDescriptor ?? Object.getOwnPropertyDescriptor(target, propertyName),
31+
args[0]
32+
);
2833
};
2934
}
3035

0 commit comments

Comments
 (0)