Skip to content

Commit ec00057

Browse files
authored
Merge pull request #244 from patrickhousley/bugfix/239-constructure-called-twice
Controller constructer called twice
2 parents 3107a46 + e310078 commit ec00057

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/metadata/ActionMetadata.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,8 @@ export class ActionMetadata {
257257
* Action method is an action defined in a user controller.
258258
*/
259259
callMethod(params: any[]) {
260-
return this.controllerMetadata.instance[this.method].apply(this.controllerMetadata.instance, params);
260+
const controllerInstance = this.controllerMetadata.instance;
261+
return controllerInstance[this.method].apply(controllerInstance, params);
261262
}
262263

263264
// -------------------------------------------------------------------------

0 commit comments

Comments
 (0)