|
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. |
Replies: 2 comments
|
The answer his in the doc: https://tsed.io/docs/providers.html#services Search es6 import See you |
|
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 |
The answer his in the doc:
https://tsed.io/docs/providers.html#services
Search es6 import
See you