Closed Ciboulette closed 4 years ago
Probably not normal. Can you let me know syncsService exists in the constructor?
The console.log in the constructor return 'undefined'
So it's not related to this project I think. You will have to import the module in which SyncsService belongs.
For others who stumble across this same issue. It is not just related to this package, but almost all using sqs-consumer under the hood.
If it is the same issues we encountered. It was due to converting our originally Request scoped functionality to now use a new queue based worker, yet our classes were still scoped to the Request that now no longer exists.
Removing the scope from Injectable and refactoring solved the issue.
I am still having this issue, how can I "remove the scope from Injectable"?
I've created this class as a consumer, and when receiving the message the syncService is not injected, is-it normal?