nest_transact
nest_transact copied to clipboard
@InjectDataSource() does not work with service.withTransaction()
After a service is wrapped with TransactionFor<someService>. @InjectDataSource can no longer resolve, giving error:
"message": "Cannot read properties of undefined (reading 'name')"
I'm having the same issue with NestJS 8.x or 9.x with TypeORM 0.30.x and 8.0.0 or 9.1.0 of nest_transact. Had to revert back to @nestjs/typeorm - 7.1.5 and TypeORM 0.2.45. Fingers crossed this is an easy fix.
Hi @AnsonT , @woodja ! Sorry for the long answer; I was in a procrastination loop.
To tell you the truth, I'm swamped right now, and I won't be able to deal with this problem for a few months soon. It would be cool if you could help with that!