-
I want to configure a service which is not injected by other service or by any controller. My usecase is that in the service, we are polling for an AWS SQS event. Since it is not invoked anywhere during the build, the service is not able to poll for events. Few options which I have tried out:
Please help me with the correct way to inject a service in this scenario. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The answer his in the doc: https://tsed.io/docs/providers.html#services Search es6 import See you |
Beta Was this translation helpful? Give feedback.
-
it is also worth noting that if you use barrelsby does not work for ESM. so you can use this: https://github.com/waifuvault/WaifuVault/blob/main/buildScripts/fixbarrels.mjs |
Beta Was this translation helpful? Give feedback.
The answer his in the doc:
https://tsed.io/docs/providers.html#services
Search es6 import
See you