We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 24f93a7 + 4902a6e commit ee3188eCopy full SHA for ee3188e
libs/json-api-nestjs/src/lib/helper/bind-controller/index.ts
@@ -45,6 +45,13 @@ export function bindController(
45
// @ts-ignore
46
return implementationResultFunction.call(this, ...args);
47
};
48
+ Reflect.getMetadataKeys(implementationResultFunction).forEach((metadataKey) => {
49
+ Reflect.defineMetadata(
50
+ metadataKey,
51
+ Reflect.getMetadata(metadataKey, implementationResultFunction),
52
+ controller.prototype[name]
53
+ );
54
+ });
55
56
const descriptor = Object.getOwnPropertyDescriptor(
57
controller.prototype,
0 commit comments