Description
Resolve module dependencies (WalletModule needs UsersService to validate userId, and the wallets TypeORM repository) without circular imports.
Deliverables
WalletModule imports UsersModule (exporting UsersService) and registers the Wallet entity repository
- No circular dependency warnings on boot
Depends on
Persist the Wallet entity linked to a userId
Description
Resolve module dependencies (WalletModule needs UsersService to validate userId, and the wallets TypeORM repository) without circular imports.
Deliverables
WalletModuleimportsUsersModule(exportingUsersService) and registers theWalletentity repositoryDepends on
Persist the Wallet entity linked to a userId