Skip to content

Instantly share code, notes, and snippets.

@alphamikle
Last active February 11, 2021 18:38
Show Gist options
  • Save alphamikle/b2f19500c2cded94217b0344e9c3d3c5 to your computer and use it in GitHub Desktop.
Save alphamikle/b2f19500c2cded94217b0344e9c3d3c5 to your computer and use it in GitHub Desktop.
@Injectable()
export class AppService extends TransactionFor<AppService> /* <-- step 1 */ {
constructor(
@InjectRepository(User)
private readonly userRepository: Repository<User>,
@InjectRepository(Purse)
private readonly purseRepository: Repository<Purse>,
private readonly appServiceV2: AppServiceV2,
moduleRef: ModuleRef, // <-- step 2
) {
super(moduleRef);
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment