Skip to content

Commit

Permalink
fix: remove hasMetada check
Browse files Browse the repository at this point in the history
  • Loading branch information
aaydin-tr committed Apr 8, 2024
1 parent 74aaa32 commit c975227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decorators/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export function Controller(prefix: string, options?: ControllerOptions) {
fnName: value,
method,
pathHasParams,
before: Reflect.hasMetadata("before", target.prototype) ? Reflect.getMetadata("before", target.prototype, value) : [],
after: Reflect.hasMetadata("after", target.prototype) ? Reflect.getMetadata("after", target.prototype, value) : [],
before: Reflect.getMetadata("before", target.prototype, value) || [],
after: Reflect.getMetadata("after", target.prototype, value) || [],
});
}
}
Expand Down

0 comments on commit c975227

Please sign in to comment.