@InjectDataSource() does not work with service.withTransaction()
AnsonT opened this issue · comments
AnsonT commented
After a service is wrapped with TransactionFor. @InjectDataSource can no longer resolve, giving error:
"message": "Cannot read properties of undefined (reading 'name')"
Jason Wood commented
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.