-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set time from config service to decorator #24
Comments
Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details. |
The this context is different between decorator and function, not use this in decorator |
Thanks, but how should I use it in this case? |
That's all about |
I have the same question, I want to set enable: true/false based on the environment parameters. |
Environment parameters can be used directly, since they are available already. |
I have to create static methods and properties in ConfigService, then we can access them. @Timeout(1000, {
key: ConfigService.getString('ABC_KEY'),
enable: ConfigService.getBoolean('ABC_ENABLE'),
}) Not sure if this is the best practice |
Is it possible to set time to decorator from configService which I use as dependency in my job module, for example this way:
The text was updated successfully, but these errors were encountered: