toss / nestjs-aop

A way to gracefully apply AOP to nestjs
MIT License
213 stars 24 forks source link

fix: Instead of lazy wrap method, the originalFn is handed over to AddMetadata and wrapped immediately. #11

Closed WhiteKiwi closed 1 year ago

WhiteKiwi commented 1 year ago

Overview

When lazy wrap is performed, the wrap is executed when the call is made rather than in the onModuleInit step. I modified the warp to be invoked in the onModuleInit step.