Skip to content

Instantly share code, notes, and snippets.

@alphamikle
Last active Feb 11, 2021
Embed
What would you like to do?
@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